From 63e19c0068b03adc43ce19725d3852b5eebac630 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 2 Dec 2022 10:04:57 -0600 Subject: [PATCH] do_test_clean_dropped_unrooted_banks uses write cache (#29029) --- runtime/src/bank.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 5bfcee499b..1356b81035 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -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();