remove test method slot_stores (#29736)

This commit is contained in:
Jeff Washington (jwash) 2023-01-17 12:15:25 -06:00 committed by GitHub
parent 71a746f10e
commit e1d38c8315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -13684,10 +13684,6 @@ pub mod tests {
}
}
fn slot_stores(db: &AccountsDb, slot: Slot) -> Vec<SnapshotStorageOne> {
db.get_storages_for_slot(slot).unwrap_or_default()
}
#[test]
fn test_read_only_accounts_cache() {
let db = Arc::new(AccountsDb::new_with_config_for_tests(
@ -14605,8 +14601,8 @@ pub mod tests {
db.print_accounts_stats("post-clean1");
// Check stores > 0
assert!(!slot_stores(&db, 0).is_empty());
assert!(!slot_stores(&db, 1).is_empty());
assert!(!db.storage.is_empty_entry(0));
assert!(!db.storage.is_empty_entry(1));
// root slot 0
db.add_root_and_flush_write_cache(0);
@ -14636,8 +14632,8 @@ pub mod tests {
db.print_accounts_stats("post-clean4");
assert!(slot_stores(&db, 0).is_empty());
assert!(!slot_stores(&db, 1).is_empty());
assert!(db.storage.is_empty_entry(0));
assert!(!db.storage.is_empty_entry(1));
}
#[test]