Skip to content

Commit

Permalink
test: expected deadlines are timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Sep 25, 2024
1 parent 6be7d24 commit ae76ae2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions solidity/test/integration/IntegrationBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ contract IntegrationBase is DSTestPlus, TestConstants, Helpers {
uint256 internal _expectedReward = 30 ether;
uint256 internal _expectedDeadline;
uint256 internal _expectedCallbackValue = 42;
uint256 internal _baseDisputeWindow = 120; // blocks
uint256 internal _baseDisputeWindow = 120 * BLOCK_TIME;
bytes32 internal _ipfsHash = bytes32('QmR4uiJH654k3Ta2uLLQ8r');
uint256 internal _blocksDeadline = 600;
uint256 internal _timestampDeadline = _blocksDeadline * BLOCK_TIME;

function setUp() public virtual {
vm.createSelectFork(vm.rpcUrl('optimism'), FORK_BLOCK);
Expand Down Expand Up @@ -135,7 +136,7 @@ contract IntegrationBase is DSTestPlus, TestConstants, Helpers {
vm.stopPrank();

// Set the expected deadline
_expectedDeadline = block.timestamp + BLOCK_TIME * _blocksDeadline;
_expectedDeadline = block.timestamp + _timestampDeadline;

// Configure the mock request
mockRequest.requestModuleData = abi.encode(
Expand Down

0 comments on commit ae76ae2

Please sign in to comment.