remove test method slot_stores (#29736)
This commit is contained in:
parent
71a746f10e
commit
e1d38c8315
|
@ -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]
|
#[test]
|
||||||
fn test_read_only_accounts_cache() {
|
fn test_read_only_accounts_cache() {
|
||||||
let db = Arc::new(AccountsDb::new_with_config_for_tests(
|
let db = Arc::new(AccountsDb::new_with_config_for_tests(
|
||||||
|
@ -14605,8 +14601,8 @@ pub mod tests {
|
||||||
|
|
||||||
db.print_accounts_stats("post-clean1");
|
db.print_accounts_stats("post-clean1");
|
||||||
// Check stores > 0
|
// Check stores > 0
|
||||||
assert!(!slot_stores(&db, 0).is_empty());
|
assert!(!db.storage.is_empty_entry(0));
|
||||||
assert!(!slot_stores(&db, 1).is_empty());
|
assert!(!db.storage.is_empty_entry(1));
|
||||||
|
|
||||||
// root slot 0
|
// root slot 0
|
||||||
db.add_root_and_flush_write_cache(0);
|
db.add_root_and_flush_write_cache(0);
|
||||||
|
@ -14636,8 +14632,8 @@ pub mod tests {
|
||||||
|
|
||||||
db.print_accounts_stats("post-clean4");
|
db.print_accounts_stats("post-clean4");
|
||||||
|
|
||||||
assert!(slot_stores(&db, 0).is_empty());
|
assert!(db.storage.is_empty_entry(0));
|
||||||
assert!(!slot_stores(&db, 1).is_empty());
|
assert!(!db.storage.is_empty_entry(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue