From e1d38c8315e88bc5558b774e9598b7a74d5b31f6 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 17 Jan 2023 12:15:25 -0600 Subject: [PATCH] remove test method slot_stores (#29736) --- runtime/src/accounts_db.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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]