test_verify_snapshot_bank works without write cache (#29075)

This commit is contained in:
Jeff Washington (jwash) 2022-12-05 13:00:01 -06:00 committed by GitHub
parent c65a8ce6c3
commit 1036d4409b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -11766,6 +11766,7 @@ pub(crate) mod tests {
) )
.unwrap(); .unwrap();
bank.freeze(); bank.freeze();
add_root_and_flush_write_cache(&bank);
bank.update_accounts_hash_for_tests(); bank.update_accounts_hash_for_tests();
assert!(bank.verify_snapshot_bank(true, false, bank.slot())); assert!(bank.verify_snapshot_bank(true, false, bank.slot()));