Add base_slot to get_snapshot_storages() (#19348)

This commit is contained in:
Brooks Prumo
2021-08-20 16:23:43 -05:00
committed by GitHub
parent 05e7d1027b
commit 234461f779
6 changed files with 73 additions and 37 deletions

View File

@@ -1386,9 +1386,9 @@ mod tests {
bank.squash();
bank.force_flush_accounts_cache();
// do clean and assert that it actually did its job
assert_eq!(3, bank.get_snapshot_storages().len());
assert_eq!(3, bank.get_snapshot_storages(None).len());
bank.clean_accounts(false, false, None);
assert_eq!(2, bank.get_snapshot_storages().len());
assert_eq!(2, bank.get_snapshot_storages(None).len());
});
}