Merge pull request #267 from ethcore/garbage-test-fix
Garbage collection test fix
This commit is contained in:
commit
549bb777e3
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user