mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-24 05:29:56 +00:00
[market] Fix timing of test for slow CI
This commit is contained in:
parent
dd89a55351
commit
291c506e0b
@ -170,11 +170,11 @@ ethersuite "On-Chain Market":
|
||||
check (await market.getTime()) == latestBlock.timestamp
|
||||
|
||||
test "supports waiting for expiry of a request or offer":
|
||||
let pollInterval = 100.milliseconds
|
||||
let pollInterval = 200.milliseconds
|
||||
market.pollInterval = pollInterval
|
||||
|
||||
proc waitForPoll {.async.} =
|
||||
await sleepAsync(pollInterval + 10.milliseconds)
|
||||
await sleepAsync(pollInterval * 2)
|
||||
|
||||
let future = market.waitUntil(request.expiry)
|
||||
check not future.completed
|
||||
|
Loading…
x
Reference in New Issue
Block a user