do_test_clean_dropped_unrooted_banks uses write cache (#29029)

This commit is contained in:
Jeff Washington (jwash) 2022-12-02 10:04:57 -06:00 committed by GitHub
parent 911a8d2a4a
commit 63e19c0068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -18005,6 +18005,7 @@ pub(crate) mod tests {
let slot = 1;
let bank1 = Bank::new_from_parent(&bank0, &collector, slot);
add_root_and_flush_write_cache(&bank0);
bank1
.transfer(amount, &mint_keypair, &key1.pubkey())
.unwrap();
@ -18027,6 +18028,7 @@ pub(crate) mod tests {
bank2.freeze(); // the freeze here is not strictly necessary, but more for illustration
bank2.squash();
add_root_and_flush_write_cache(&bank2);
drop(bank1);
bank2.clean_accounts_for_tests();