mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-02 14:03:34 +00:00
[clock] Fix test failure when sleepAsync takes a bit longer than expected
This commit is contained in:
parent
d6393de324
commit
49e60d6a5c
@ -28,7 +28,7 @@ ethersuite "On-Chain Clock":
|
||||
test "updates time using wall-clock in-between blocks":
|
||||
let past = clock.now()
|
||||
await sleepAsync(chronos.seconds(1))
|
||||
check clock.now() == past + 1
|
||||
check clock.now() > past
|
||||
|
||||
test "raises when not started":
|
||||
expect AssertionError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user