add accounts db config to bank tests (#26517)

This commit is contained in:
Jeff Washington (jwash) 2022-07-10 19:42:06 -05:00 committed by GitHub
parent 2b6c9852f1
commit 602da5e51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 1 deletions

View File

@ -101,6 +101,7 @@ impl SnapshotTestConfig {
false,
accounts_db::AccountShrinkThreshold::default(),
false,
None,
);
bank0.freeze();
let mut bank_forks = BankForks::new(bank0);

View File

@ -3656,6 +3656,7 @@ pub mod tests {
false,
AccountShrinkThreshold::default(),
false,
None,
);
*bank.epoch_schedule()
}

View File

@ -1475,6 +1475,7 @@ impl Bank {
accounts_db_caching_enabled,
shrink_ratio,
false,
None,
)
}
@ -1556,6 +1557,7 @@ impl Bank {
accounts_db_caching_enabled: bool,
shrink_ratio: AccountShrinkThreshold,
debug_do_not_add_builtins: bool,
accounts_db_config: Option<AccountsDbConfig>,
) -> Self {
Self::new_with_paths(
genesis_config,
@ -1566,7 +1568,7 @@ impl Bank {
accounts_db_caching_enabled,
shrink_ratio,
debug_do_not_add_builtins,
Some(ACCOUNTS_DB_CONFIG_FOR_TESTING),
accounts_db_config.or(Some(ACCOUNTS_DB_CONFIG_FOR_TESTING)),
None,
)
}

View File

@ -3539,6 +3539,7 @@ mod tests {
false,
AccountShrinkThreshold::default(),
false,
None,
));
bank0
.transfer(lamports_to_transfer, &mint_keypair, &key2.pubkey())