Skip to content

Commit 12e6572

Browse files
committed
pr feedback: update test check
1 parent 350dc2b commit 12e6572

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

program/tests/duplicate_block_proof.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use {
3131
processor::process_instruction,
3232
state::ProofType,
3333
},
34-
std::sync::Arc,
34+
std::{assert_ne, sync::Arc},
3535
};
3636

3737
const SLOT: Slot = 53084024;
@@ -274,6 +274,12 @@ async fn valid_proof_coding() {
274274
let shred2 =
275275
new_rand_coding_shreds(&mut rng, next_shred_index, 10, &shredder, &leader)[1].clone();
276276

277+
assert_ne!(
278+
shred1.merkle_root().unwrap(),
279+
shred2.merkle_root().unwrap(),
280+
"Expected merkle root failure"
281+
);
282+
277283
let duplicate_proof = DuplicateBlockProofData {
278284
shred1: shred1.payload().as_slice(),
279285
shred2: shred2.payload().as_slice(),

0 commit comments

Comments
 (0)