Bank::default_for_tests() (#19084)

This commit is contained in:
Jeff Washington (jwash)
2021-08-05 11:53:29 -05:00
committed by GitHub
parent 24207a09ac
commit a9014ceceb
7 changed files with 12 additions and 7 deletions

View File

@ -6854,7 +6854,7 @@ pub mod tests {
#[test]
fn test_is_finalized() {
let bank = Arc::new(Bank::default());
let bank = Arc::new(Bank::default_for_tests());
let ledger_path = get_tmp_ledger_path!();
let blockstore = Arc::new(Blockstore::open(&ledger_path).unwrap());
blockstore.set_roots(vec![0, 1].iter()).unwrap();

View File

@ -340,7 +340,7 @@ mod test {
#[test]
fn service_exit() {
let tpu_address = "127.0.0.1:0".parse().unwrap();
let bank = Bank::default();
let bank = Bank::default_for_tests();
let bank_forks = Arc::new(RwLock::new(BankForks::new(bank)));
let (sender, receiver) = channel();