fix garbage collection test

This commit is contained in:
Nikolay Volf 2016-01-29 19:28:13 +04:00
parent dfeca68601
commit e3623ed1b4

View File

@ -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);
}