From eb945ae6d736ebf704f02e645d1c5016b23a5c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 7 Apr 2023 09:47:46 +0100 Subject: [PATCH] evil: #1123 - update tests from `TestShell:new` to `test_utils::setup` --- apps/src/lib/node/ledger/shell/prepare_proposal.rs | 2 +- apps/src/lib/node/ledger/shell/process_proposal.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/src/lib/node/ledger/shell/prepare_proposal.rs b/apps/src/lib/node/ledger/shell/prepare_proposal.rs index ecae01e3e9..fdb769406a 100644 --- a/apps/src/lib/node/ledger/shell/prepare_proposal.rs +++ b/apps/src/lib/node/ledger/shell/prepare_proposal.rs @@ -415,7 +415,7 @@ mod test_prepare_proposal { /// Test that expired wrapper transactions are not included in the block #[test] fn test_expired_wrapper_tx() { - let (shell, _) = TestShell::new(); + let (shell, _) = test_utils::setup(1); let keypair = gen_keypair(); let tx_time = DateTimeUtc::now(); let tx = Tx::new( diff --git a/apps/src/lib/node/ledger/shell/process_proposal.rs b/apps/src/lib/node/ledger/shell/process_proposal.rs index ecdbcd719c..1efd087dc7 100644 --- a/apps/src/lib/node/ledger/shell/process_proposal.rs +++ b/apps/src/lib/node/ledger/shell/process_proposal.rs @@ -1532,7 +1532,7 @@ mod test_process_proposal { /// Test that an expired wrapper transaction causes a block rejection #[test] fn test_expired_wrapper() { - let (mut shell, _) = TestShell::new(); + let (mut shell, _) = test_utils::setup(1); let keypair = crate::wallet::defaults::daewon_keypair(); let tx = Tx::new( @@ -1573,11 +1573,11 @@ mod test_process_proposal { } } - /// Test that an expired decrypted transaction is correctlye marked as so + /// Test that an expired decrypted transaction is correctly marked as so /// without rejecting the entire block #[test] fn test_expired_decrypted() { - let (mut shell, _) = TestShell::new(); + let (mut shell, _) = test_utils::setup(1); let keypair = crate::wallet::defaults::daewon_keypair(); let tx = Tx::new(