fix garbage collection test
This commit is contained in:
parent
dfeca68601
commit
e3623ed1b4
@ -785,7 +785,9 @@ mod tests {
|
|||||||
}
|
}
|
||||||
assert!(bc.cache_size().blocks > 1024 * 1024);
|
assert!(bc.cache_size().blocks > 1024 * 1024);
|
||||||
|
|
||||||
|
for _ in 0..2 {
|
||||||
bc.collect_garbage(true);
|
bc.collect_garbage(true);
|
||||||
|
}
|
||||||
|
|
||||||
assert!(bc.cache_size().blocks < 1024 * 1024);
|
assert!(bc.cache_size().blocks < 1024 * 1024);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user