diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 2b6c475db9..f98c615720 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -13684,10 +13684,6 @@ pub mod tests { } } - fn slot_stores(db: &AccountsDb, slot: Slot) -> Vec { - 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]