Removes checks for bank_hash_stats in test (#30480)

This commit is contained in:
Brooks 2023-02-24 14:35:36 -05:00 committed by GitHub
parent efc5cc4a48
commit e0abad43c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -17758,13 +17758,11 @@ pub mod tests {
db.handle_dropped_roots_for_ancient(std::iter::empty::<Slot>());
let slot0 = 0;
let dropped_roots = vec![slot0];
assert!(db.get_bank_hash_stats(slot0).is_some());
db.accounts_index.add_root(slot0);
db.accounts_index.add_uncleaned_roots([slot0].into_iter());
assert!(db.accounts_index.is_uncleaned_root(slot0));
assert!(db.accounts_index.is_alive_root(slot0));
db.handle_dropped_roots_for_ancient(dropped_roots.into_iter());
assert!(db.get_bank_hash_stats(slot0).is_none());
assert!(!db.accounts_index.is_uncleaned_root(slot0));
assert!(!db.accounts_index.is_alive_root(slot0));
}