[market] Fix timing of test for slow CI

This commit is contained in:
Mark Spanbroek 2022-03-30 17:04:35 +02:00 committed by markspanbroek
parent dd89a55351
commit 291c506e0b
1 changed files with 2 additions and 2 deletions

View File

@ -170,11 +170,11 @@ ethersuite "On-Chain Market":
check (await market.getTime()) == latestBlock.timestamp check (await market.getTime()) == latestBlock.timestamp
test "supports waiting for expiry of a request or offer": test "supports waiting for expiry of a request or offer":
let pollInterval = 100.milliseconds let pollInterval = 200.milliseconds
market.pollInterval = pollInterval market.pollInterval = pollInterval
proc waitForPoll {.async.} = proc waitForPoll {.async.} =
await sleepAsync(pollInterval + 10.milliseconds) await sleepAsync(pollInterval * 2)
let future = market.waitUntil(request.expiry) let future = market.waitUntil(request.expiry)
check not future.completed check not future.completed