Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure we have a minimum expected gap in flash blocks test #5378

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading