From 3a97986d7eb6e999e437428767f532b0c476a593 Mon Sep 17 00:00:00 2001 From: Brooks Date: Sat, 11 Mar 2023 01:01:44 -0500 Subject: [PATCH] Cleans up tests for verify_accounts_hash (#30683) --- runtime/src/accounts_db.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 64867ec1c578f8..98cb30a33fca43 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -9621,8 +9621,8 @@ pub mod tests { ancestors: &'a Ancestors, epoch_schedule: &'a EpochSchedule, rent_collector: &'a RentCollector, - ) -> VerifyAccountsHashAndLamportsConfig<'a> { - VerifyAccountsHashAndLamportsConfig { + ) -> Self { + Self { ancestors, test_hash_calculation: true, epoch_schedule, @@ -12595,7 +12595,7 @@ pub mod tests { } #[test] - fn test_verify_bank_hash() { + fn test_verify_accounts_hash() { use AccountsHashVerificationError::*; solana_logger::setup(); let db = AccountsDb::new(Vec::new(), &ClusterType::Development); @@ -12694,7 +12694,7 @@ pub mod tests { } #[test] - fn test_verify_bank_hash_no_account() { + fn test_verify_accounts_hash_no_account() { solana_logger::setup(); let db = AccountsDb::new(Vec::new(), &ClusterType::Development); @@ -12719,7 +12719,7 @@ pub mod tests { } #[test] - fn test_verify_bank_hash_bad_account_hash() { + fn test_verify_accounts_hash_bad_account_hash() { use AccountsHashVerificationError::*; solana_logger::setup(); let db = AccountsDb::new(Vec::new(), &ClusterType::Development);