From 0bbc4774d7bc522e69be252f16c8c26300a6d8a5 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Sun, 5 Feb 2023 14:13:39 -0600 Subject: [PATCH] minor cleanup on tests (#30125) --- runtime/src/accounts_db.rs | 2 +- runtime/src/ancient_append_vecs.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index dd0527fb66..78fdbcb2e3 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -17431,7 +17431,7 @@ pub mod tests { } pub(crate) fn remove_account_for_tests( - storage: &Arc, + storage: &AccountStorageEntry, num_bytes: usize, reset_accounts: bool, ) { diff --git a/runtime/src/ancient_append_vecs.rs b/runtime/src/ancient_append_vecs.rs index ff4ddcdedd..ecf9da3d05 100644 --- a/runtime/src/ancient_append_vecs.rs +++ b/runtime/src/ancient_append_vecs.rs @@ -303,11 +303,7 @@ pub mod tests { } } - fn assert_storage_info( - info: &SlotInfo, - storage: &Arc, - should_shrink: bool, - ) { + fn assert_storage_info(info: &SlotInfo, storage: &AccountStorageEntry, should_shrink: bool) { assert_eq!(storage.append_vec_id(), info.storage.append_vec_id()); assert_eq!(storage.slot(), info.slot); assert_eq!(storage.capacity(), info.capacity); @@ -356,7 +352,6 @@ pub mod tests { let alive = false; let slots = 1; for call_add in [false, true] { - // 1_040_000 is big enough relative to page size to cause shrink ratio to be triggered let (db, slot1) = create_db_with_storages_and_index(alive, slots, None); let mut infos = AncientSlotInfos::default(); let storage = db.storage.get_slot_storage_entry(slot1).unwrap();