From 4131071b9a4d826d375b2d2bb2ae760bfddac1a8 Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Mon, 14 May 2018 22:06:42 -0700 Subject: [PATCH] fix ignore tests --- src/crdt.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/crdt.rs b/src/crdt.rs index 49f9e790e469b9..f76ca3862e54c9 100644 --- a/src/crdt.rs +++ b/src/crdt.rs @@ -191,7 +191,10 @@ impl Crdt { } }) .collect(); - assert!(nodes.len() > 0); + if nodes.len() < 1 { + return Err(Error::CrdtToSmall); + } + info!("nodes table {}", nodes.len()); info!("blobs table {}", blobs.len()); // enumerate all the blobs, those are the indecies