From: Jérôme Benoit Date: Fri, 25 Aug 2023 23:11:27 +0000 (+0200) Subject: test: skip unstable UT X-Git-Tag: v2.6.36~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6543999f1fde88840c2879116f5b203c95fa8c40;p=poolifier.git test: skip unstable UT Signed-off-by: Jérôme Benoit --- diff --git a/tests/utils.test.js b/tests/utils.test.js index 42a0668a..0f72aa42 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -26,11 +26,11 @@ describe('Utils test suite', () => { expect(Number.isSafeInteger(availableParallelism())).toBe(true) }) - it('Verify sleep() behavior', async () => { + it.skip('Verify sleep() behavior', async () => { const start = performance.now() await sleep(1000) - const stop = performance.now() - expect(stop - start).toBeGreaterThanOrEqual(1000) + const elapsed = performance.now() - start + expect(elapsed).toBeGreaterThanOrEqual(1000) }) it('Verify exponentialDelay() behavior', () => {