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

Commit 031669a

Browse files
committed
Fix test logic after fixing bug in get_batch_by_transaction
Signed-off-by: Joseph Livesey <[email protected]>
1 parent a5dd277 commit 031669a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validator/src/journal/commit_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ mod tests {
602602
.batches
603603
.into_iter()
604604
.find(|batch| {
605-
!batch
605+
batch
606606
.transaction_ids
607607
.iter()
608-
.all(|txn_id| txn_id != transaction_id)
608+
.any(|txn_id| txn_id == transaction_id)
609609
})
610610
.ok_or_else(|| DatabaseError::CorruptionError("Transaction index corrupted".into()))
611611
// })

0 commit comments

Comments
 (0)