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