From 22a3c01c7805e6a4df9b54779f501d6006d0445f Mon Sep 17 00:00:00 2001 From: Jack Corddry Date: Mon, 19 Sep 2022 16:40:16 -0700 Subject: [PATCH] Correct test timestamp warping --- test/frxETH_sfrxETH_combo.t.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/frxETH_sfrxETH_combo.t.sol b/test/frxETH_sfrxETH_combo.t.sol index 8233d48..5fd1612 100644 --- a/test/frxETH_sfrxETH_combo.t.sol +++ b/test/frxETH_sfrxETH_combo.t.sol @@ -30,6 +30,8 @@ contract xERC4626Test is Test { function setUp() public { + vm.warp(0); // Fuzz fails without!! + // Set the withdrawal credentials (must be done at compile time due to .env loading) WITHDRAWAL_CREDENTIALS = vm.envBytes("VALIDATOR_TEST_WITHDRAWAL_CREDENTIALS0"); @@ -54,7 +56,6 @@ contract xERC4626Test is Test { owner = payable(vm.addr(ownerPrivateKey)); spender = payable(vm.addr(spenderPrivateKey)); - vm.warp(0); // Fuzz fails without!! //emit log_timestamp(block.timestamp); }