Bank::default_for_tests() (#19084)
This commit is contained in:
committed by
GitHub
parent
24207a09ac
commit
a9014ceceb
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user