From 7e3088cc57012fa87fee7fa3f0d9819520376e3a Mon Sep 17 00:00:00 2001 From: Joseph Livesey Date: Tue, 10 Oct 2023 11:17:46 -0400 Subject: [PATCH] Fix test logic after fixing bug in get_batch_by_transaction Signed-off-by: Joseph Livesey --- validator/src/journal/commit_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validator/src/journal/commit_store.rs b/validator/src/journal/commit_store.rs index ab3ccfe091..15bdba7d62 100644 --- a/validator/src/journal/commit_store.rs +++ b/validator/src/journal/commit_store.rs @@ -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())) // })