minor cleanup on tests (#30125)
This commit is contained in:
parent
a24363bb04
commit
0bbc4774d7
|
@ -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,
|
||||
) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue