mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 07:53:07 +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