Skip to content

Commit

Permalink
Merge pull request #5378 from stacks-network/fix/flash-block-on-epoch-3
Browse files Browse the repository at this point in the history
Ensure we have a minimum expected gap in flash blocks test
  • Loading branch information
jferrant authored Oct 24, 2024
2 parents f759c95 + 08f293e commit 09d920c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1895,11 +1895,10 @@ fn flash_blocks_on_epoch_3() {
}
}

// Verify that there's a gap of exactly 3 blocks
assert_eq!(
gap_end - gap_start + 1,
3,
"Expected a gap of exactly 3 burn blocks due to flash blocks, found gap from {} to {}",
// Verify that there's a gap of AT LEAST 3 blocks
assert!(
gap_end - gap_start + 1 >= 3,
"Expected a gap of AT LEAST 3 burn blocks due to flash blocks, found gap from {} to {}",
gap_start,
gap_end
);
Expand Down

0 comments on commit 09d920c

Please sign in to comment.