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

@@ -180,7 +180,7 @@ fn test_accounts_serialize_style(serde_style: SerdeStyle) {
fn test_bank_serialize_style(serde_style: SerdeStyle) {
solana_logger::setup();
let (genesis_config, _) = create_genesis_config(500);
let bank0 = Arc::new(Bank::new(&genesis_config));
let bank0 = Arc::new(Bank::new_for_tests(&genesis_config));
let bank1 = Bank::new_from_parent(&bank0, &Pubkey::default(), 1);
bank0.squash();