From 5b986dbb6846e6cf78c48779a56eabac20c0b337 Mon Sep 17 00:00:00 2001 From: Ashwin Sekar Date: Fri, 1 Dec 2023 02:40:29 +0000 Subject: [PATCH] pr feedback: check test case --- ledger/src/blockstore.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index c83d1b3c5b9707..9817c3bbae54f5 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -6962,10 +6962,10 @@ pub mod tests { // No insert, notify duplicate assert_eq!(duplicates.len(), 1); - assert_matches!( - duplicates[0], - PossibleDuplicateShred::MerkleRootConflict(_, _) - ); + match &duplicates[0] { + PossibleDuplicateShred::MerkleRootConflict(shred, _) if shred.slot() == slot => (), + _ => panic!("No merkle root conflict"), + } // Verify that we still have the merkle root meta from the original shred assert_eq!(merkle_root_metas.len(), 1);