From 4be58f3c4495ba79ee81aa32064bebea185a24b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 28 Aug 2023 12:31:24 +0200 Subject: [PATCH] test: fix sleep() test, take 2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.test.js b/tests/utils.test.js index 18f266e2..0fc6dc8a 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -49,7 +49,7 @@ describe('Utils test suite', () => { const start = performance.now() await sleep(1000) const elapsed = performance.now() - start - expect(elapsed).toBeGreaterThanOrEqual(999.9) + expect(elapsed).toBeGreaterThanOrEqual(999) }) it('Verify exponentialDelay() behavior', () => { -- 2.34.1