Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Add another clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge committed Jun 16, 2021
1 parent 613a6ee commit 43b09c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9241,6 +9241,9 @@ pub mod tests {
// Do clean
accounts.clean_accounts(None, false);

// 2nd clean needed to clean-up pubkey1
accounts.clean_accounts(None, false);

// Ensure pubkey2 is cleaned from the index finally
assert_not_load_account(&accounts, current_slot, pubkey1);
assert_load_account(&accounts, current_slot, pubkey2, old_lamport);
Expand Down

0 comments on commit 43b09c4

Please sign in to comment.