From 49e60d6a5c9242a4b25259009d805fdede0ddeb2 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 18 May 2022 14:47:24 +0200 Subject: [PATCH] [clock] Fix test failure when sleepAsync takes a bit longer than expected --- tests/contracts/testClock.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/contracts/testClock.nim b/tests/contracts/testClock.nim index 37d5cada2..1b325af77 100644 --- a/tests/contracts/testClock.nim +++ b/tests/contracts/testClock.nim @@ -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: