for all tests, bank::new -> bank::new_for_tests (#19064)

This commit is contained in:
Jeff Washington (jwash)
2021-08-05 08:42:38 -05:00
committed by GitHub
parent 367d5f62ce
commit 14361906ca
45 changed files with 310 additions and 312 deletions

View File

@@ -340,7 +340,7 @@ mod tests {
// `runtime.block_on()` just once, to run all the async code.
let genesis = create_genesis_config(10);
let bank = Bank::new(&genesis.genesis_config);
let bank = Bank::new_for_tests(&genesis.genesis_config);
let slot = bank.slot();
let block_commitment_cache = Arc::new(RwLock::new(
BlockCommitmentCache::new_for_tests_with_slots(slot, slot),
@@ -371,7 +371,7 @@ mod tests {
// server-side functionality is available to the client.
let genesis = create_genesis_config(10);
let bank = Bank::new(&genesis.genesis_config);
let bank = Bank::new_for_tests(&genesis.genesis_config);
let slot = bank.slot();
let block_commitment_cache = Arc::new(RwLock::new(
BlockCommitmentCache::new_for_tests_with_slots(slot, slot),