Commit b971743b authored by smartcontracts's avatar smartcontracts Committed by GitHub

Merge pull request #2135 from ethereum-optimism/sc/sdk-test-flake

fix(sdk): updated flaky test
parents 35dfc5e5 79f63a88
...@@ -1394,9 +1394,14 @@ describe('CrossChainMessenger', () => { ...@@ -1394,9 +1394,14 @@ describe('CrossChainMessenger', () => {
ethers.provider.send('evm_increaseTime', [challengePeriod / 2]) ethers.provider.send('evm_increaseTime', [challengePeriod / 2])
ethers.provider.send('evm_mine', []) ethers.provider.send('evm_mine', [])
expect( expectApprox(
await messenger.estimateMessageWaitTimeSeconds(message) await messenger.estimateMessageWaitTimeSeconds(message),
).to.equal(challengePeriod / 2) challengePeriod / 2,
{
percentUpperDeviation: 5,
percentLowerDeviation: 5,
}
)
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment