Commit 79f63a88 authored by Kelvin Fichter's avatar Kelvin Fichter

fix(sdk): updated flaky test

parent 849ec8cc
...@@ -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