From e3623ed1b4df395ebf5fc88eaf944985faa2c51d Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 29 Jan 2016 19:28:13 +0400 Subject: [PATCH 1/2] fix garbage collection test --- src/blockchain.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blockchain.rs b/src/blockchain.rs index 2610407ac..b0149b2b2 100644 --- a/src/blockchain.rs +++ b/src/blockchain.rs @@ -785,7 +785,9 @@ mod tests { } assert!(bc.cache_size().blocks > 1024 * 1024); - bc.collect_garbage(true); + for _ in 0..2 { + bc.collect_garbage(true); + } assert!(bc.cache_size().blocks < 1024 * 1024); } From acae66ec03b96f49d2277d01e8d4f01bdcc1f6f6 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 29 Jan 2016 19:29:20 +0400 Subject: [PATCH 2/2] superflour space --- src/blockchain.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/blockchain.rs b/src/blockchain.rs index b0149b2b2..757e51c59 100644 --- a/src/blockchain.rs +++ b/src/blockchain.rs @@ -788,7 +788,6 @@ mod tests { for _ in 0..2 { bc.collect_garbage(true); } - assert!(bc.cache_size().blocks < 1024 * 1024); }