Skip to content

Commit f9f7db0

Browse files
waelsy123Amxx
andauthored
Fix flaky test testFuzzFutureBlocks (#5783)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 parent 0aaa23e commit f9f7db0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/utils/Blockhash.t.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ contract BlockhashTest is Test {
6767
function testFuzzFutureBlocks(uint256 offset, uint256 currentBlock) public {
6868
// Future blocks
6969
offset = bound(offset, 1, type(uint256).max);
70+
currentBlock = bound(currentBlock, 0, type(uint256).max - offset);
7071
vm.roll(currentBlock);
7172

7273
unchecked {

0 commit comments

Comments
 (0)