Set ticks_per_slot higher for banking stage tests (#16094)
Tests are timing out because the bank hit the MaxTickHeight and will not process the transactions.
This commit is contained in:
parent
db3eecf1e9
commit
96ccc40f0a
|
@ -1482,7 +1482,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(10);
|
||||
} = create_slow_genesis_config(10);
|
||||
let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config));
|
||||
let start_hash = bank.last_blockhash();
|
||||
let (verified_sender, verified_receiver) = unbounded();
|
||||
|
@ -1602,7 +1602,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(2);
|
||||
} = create_slow_genesis_config(2);
|
||||
let (verified_sender, verified_receiver) = unbounded();
|
||||
|
||||
// Process a batch that includes a transaction that receives two lamports.
|
||||
|
@ -2033,6 +2033,13 @@ mod tests {
|
|||
);
|
||||
}
|
||||
|
||||
fn create_slow_genesis_config(lamports: u64) -> GenesisConfigInfo {
|
||||
let mut config_info = create_genesis_config(lamports);
|
||||
// For these tests there's only 1 slot, don't want to run out of ticks
|
||||
config_info.genesis_config.ticks_per_slot *= 8;
|
||||
config_info
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bank_process_and_record_transactions() {
|
||||
solana_logger::setup();
|
||||
|
@ -2040,7 +2047,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(10_000);
|
||||
} = create_slow_genesis_config(10_000);
|
||||
let bank = Arc::new(Bank::new(&genesis_config));
|
||||
let pubkey = solana_sdk::pubkey::new_rand();
|
||||
|
||||
|
@ -2167,7 +2174,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(10_000);
|
||||
} = create_slow_genesis_config(10_000);
|
||||
let bank = Arc::new(Bank::new(&genesis_config));
|
||||
let pubkey = solana_sdk::pubkey::new_rand();
|
||||
let pubkey1 = solana_sdk::pubkey::new_rand();
|
||||
|
@ -2274,7 +2281,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(10_000);
|
||||
} = create_slow_genesis_config(10_000);
|
||||
let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config));
|
||||
|
||||
let pubkey = solana_sdk::pubkey::new_rand();
|
||||
|
@ -2340,7 +2347,7 @@ mod tests {
|
|||
genesis_config,
|
||||
mint_keypair,
|
||||
..
|
||||
} = create_genesis_config(10_000);
|
||||
} = create_slow_genesis_config(10_000);
|
||||
let bank = Arc::new(Bank::new(&genesis_config));
|
||||
let pubkey = solana_sdk::pubkey::new_rand();
|
||||
let pubkey1 = solana_sdk::pubkey::new_rand();
|
||||
|
@ -2460,7 +2467,7 @@ mod tests {
|
|||
Arc<AtomicBool>,
|
||||
) {
|
||||
Blockstore::destroy(&ledger_path).unwrap();
|
||||
let genesis_config_info = create_genesis_config(10_000);
|
||||
let genesis_config_info = create_slow_genesis_config(10_000);
|
||||
let GenesisConfigInfo {
|
||||
genesis_config,
|
||||
mint_keypair,
|
||||
|
|
Loading…
Reference in New Issue