fix intermittent bucket age test failure (#25841)
* fix double count of account index del stats * refactor to seperate delete and insert account index stats * fix test * increase test timing tolerance for bucket age * Revert "increase test timing tolerance for bucket age" This reverts commit 2b91cf902208e4585d25dff1d4298d412c9da516. * Revert "Revert "increase test timing tolerance for bucket age"" This reverts commit 8f07367b64ddc45a9a693729ea2725895627d14c.
This commit is contained in:
parent
28142f8a6d
commit
40b1655eb5
|
@ -446,7 +446,7 @@ pub mod tests {
|
|||
let bins = 1;
|
||||
let test = BucketMapHolder::<u64>::new(bins, &Some(AccountsIndexConfig::default()), 1);
|
||||
let threads = 2;
|
||||
let time = AGE_MS * 5 / 2;
|
||||
let time = AGE_MS * 8 / 3;
|
||||
let expected = (time / AGE_MS) as Age;
|
||||
let now = Instant::now();
|
||||
test.bucket_flushed_at_current_age(); // done with age 0
|
||||
|
|
Loading…
Reference in New Issue