From f9f7db03f3df020aace3958b8fb7de8891d133e5 Mon Sep 17 00:00:00 2001 From: Wael Date: Sun, 6 Jul 2025 18:49:39 +0200 Subject: [PATCH] Fix flaky test `testFuzzFutureBlocks` (#5783) Co-authored-by: Hadrien Croubois --- test/utils/Blockhash.t.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils/Blockhash.t.sol b/test/utils/Blockhash.t.sol index eda4da626..e585ccba8 100644 --- a/test/utils/Blockhash.t.sol +++ b/test/utils/Blockhash.t.sol @@ -67,6 +67,7 @@ contract BlockhashTest is Test { function testFuzzFutureBlocks(uint256 offset, uint256 currentBlock) public { // Future blocks offset = bound(offset, 1, type(uint256).max); + currentBlock = bound(currentBlock, 0, type(uint256).max - offset); vm.roll(currentBlock); unchecked {