Merge pull request #267 from ethcore/garbage-test-fix

Garbage collection test fix
This commit is contained in:
Gav Wood 2016-01-29 18:59:36 +01:00
commit 549bb777e3

View File

@ -785,8 +785,9 @@ mod tests {
} }
assert!(bc.cache_size().blocks > 1024 * 1024); 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); assert!(bc.cache_size().blocks < 1024 * 1024);
} }