Skip to content

Commit

Permalink
[clock] Fix test failure when sleepAsync takes a bit longer than expe…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
markspanbroek committed May 19, 2022
1 parent d6393de commit 49e60d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/contracts/testClock.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49e60d6

Please sign in to comment.