minor cleanup on tests (#30125)

This commit is contained in:
Jeff Washington (jwash) 2023-02-05 14:13:39 -06:00 committed by GitHub
parent a24363bb04
commit 0bbc4774d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -17431,7 +17431,7 @@ pub mod tests {
}
pub(crate) fn remove_account_for_tests(
storage: &Arc<AccountStorageEntry>,
storage: &AccountStorageEntry,
num_bytes: usize,
reset_accounts: bool,
) {

View File

@ -303,11 +303,7 @@ pub mod tests {
}
}
fn assert_storage_info(
info: &SlotInfo,
storage: &Arc<AccountStorageEntry>,
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();