From: Jérôme Benoit Date: Mon, 28 Aug 2023 10:31:24 +0000 (+0200) Subject: test: fix sleep() test, take 2 X-Git-Tag: v2.6.37~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4be58f3c4495ba79ee81aa32064bebea185a24b5;p=poolifier.git test: fix sleep() test, take 2 Signed-off-by: Jérôme Benoit --- 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', () => {