mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-16 12:46:48 +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":
|
test "updates time using wall-clock in-between blocks":
|
||||||
let past = clock.now()
|
let past = clock.now()
|
||||||
await sleepAsync(chronos.seconds(1))
|
await sleepAsync(chronos.seconds(1))
|
||||||
check clock.now() == past + 1
|
check clock.now() > past
|
||||||
|
|
||||||
test "raises when not started":
|
test "raises when not started":
|
||||||
expect AssertionError:
|
expect AssertionError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user