Skip to content

Commit

Permalink
formatting for the proptest
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Oct 24, 2022
1 parent e84add7 commit 51b841b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions zebrad/src/components/mempool/storage/tests/prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,14 @@ proptest! {

// Insert all input transactions, and keep track of the IDs of the one that were actually
// inserted.
let inserted_transactions: HashSet<_> = input.transactions().filter_map(|transaction| {
let id = transaction.transaction.id;
let inserted_transactions: HashSet<_> = input
.transactions()
.filter_map(|transaction| {
let id = transaction.transaction.id;

storage.insert(transaction.clone()).ok().map(|_| id)
}).collect();
storage.insert(transaction.clone()).ok().map(|_| id)
})
.collect();

// Check that the inserted transactions are still there.
for transaction_id in &inserted_transactions {
Expand Down

0 comments on commit 51b841b

Please sign in to comment.