Skip to content

Commit

Permalink
pr feedback: check test case
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar committed Dec 1, 2023
1 parent e9563f2 commit 5b986db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b986db

Please sign in to comment.