Skip to content

Commit fcc2498

Browse files
committed
Do not have an overflow occur in the test
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 2ed9da7 commit fcc2498

File tree

1 file changed

+1
-0
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+1
-0
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,7 @@ fn min_gap_between_blocks() {
31413141
.as_stacks_nakamoto()
31423142
.unwrap()
31433143
.timestamp;
3144+
assert!(blocks.len() >= 2, "Expected at least 2 mined blocks");
31443145
let penultimate_block = blocks.get(blocks.len() - 2).unwrap();
31453146
let penultimate_block_time = penultimate_block
31463147
.anchored_header

0 commit comments

Comments
 (0)