From 4f37eb675971d5e79730442f189d3cd02ed61155 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 28 Aug 2023 12:25:24 +0200 Subject: [PATCH] fix: fix sleep() UT 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 57bd2611..18f266e2 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(1000) + expect(elapsed).toBeGreaterThanOrEqual(999.9) }) it('Verify exponentialDelay() behavior', () => { -- 2.34.1