Skip to content

Commit 08f293e

Browse files
committed
Ensure we have a minimum expected gap in flash blocks test
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 12296c7 commit 08f293e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,11 +1895,10 @@ fn flash_blocks_on_epoch_3() {
18951895
}
18961896
}
18971897

1898-
// Verify that there's a gap of exactly 3 blocks
1899-
assert_eq!(
1900-
gap_end - gap_start + 1,
1901-
3,
1902-
"Expected a gap of exactly 3 burn blocks due to flash blocks, found gap from {} to {}",
1898+
// Verify that there's a gap of AT LEAST 3 blocks
1899+
assert!(
1900+
gap_end - gap_start + 1 >= 3,
1901+
"Expected a gap of AT LEAST 3 burn blocks due to flash blocks, found gap from {} to {}",
19031902
gap_start,
19041903
gap_end
19051904
);

0 commit comments

Comments
 (0)