Skip to content

Commit

Permalink
fixup! evil: #1123 - update tests from TestShell:new to `test_utils…
Browse files Browse the repository at this point in the history
…::setup`
  • Loading branch information
tzemanovic committed Apr 11, 2023
1 parent eb945ae commit b4c4cfa
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions apps/src/lib/node/ledger/shell/prepare_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,16 +453,8 @@ mod test_prepare_proposal {
time: Some(block_time),
..Default::default()
};
#[cfg(feature = "abcipp")]
assert_eq!(
shell.prepare_proposal(req).tx_records,
vec![record::remove(wrapper.to_bytes())]
);
#[cfg(not(feature = "abcipp"))]
{
let result = shell.prepare_proposal(req);
eprintln!("Proposal: {:?}", result.txs);
assert!(result.txs.is_empty());
}
let result = shell.prepare_proposal(req);
eprintln!("Proposal: {:?}", result.txs);
assert!(result.txs.is_empty());
}
}

0 comments on commit b4c4cfa

Please sign in to comment.