Skip to content

Commit

Permalink
evil: #1123 - update tests from TestShell:new to test_utils::setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Apr 7, 2023
1 parent de1d07b commit eb945ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/src/lib/node/ledger/shell/prepare_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions apps/src/lib/node/ledger/shell/process_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit eb945ae

Please sign in to comment.