Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix test logic after fixing bug in get_batch_by_transaction
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <[email protected]>
  • Loading branch information
suchapalaver committed Oct 26, 2023
1 parent a5dd277 commit 031669a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator/src/journal/commit_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@ mod tests {
.batches
.into_iter()
.find(|batch| {
!batch
batch
.transaction_ids
.iter()
.all(|txn_id| txn_id != transaction_id)
.any(|txn_id| txn_id == transaction_id)
})
.ok_or_else(|| DatabaseError::CorruptionError("Transaction index corrupted".into()))
// })
Expand Down

0 comments on commit 031669a

Please sign in to comment.