diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 738c590375e917..af683d0dea096a 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1445,29 +1445,16 @@ impl Bank { } pub fn new_for_tests(genesis_config: &GenesisConfig) -> Self { - Self::new_with_paths_for_tests( + Self::new_with_config( genesis_config, - Vec::new(), - None, - None, AccountSecondaryIndexes::default(), false, AccountShrinkThreshold::default(), - false, ) } pub fn new_no_wallclock_throttle_for_tests(genesis_config: &GenesisConfig) -> Self { - let mut bank = Self::new_with_paths_for_tests( - genesis_config, - Vec::new(), - None, - None, - AccountSecondaryIndexes::default(), - false, - AccountShrinkThreshold::default(), - false, - ); + let mut bank = Self::new_for_tests(genesis_config); bank.ns_per_slot = std::u128::MAX; bank