From 6543999f1fde88840c2879116f5b203c95fa8c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 26 Aug 2023 01:11:27 +0200 Subject: [PATCH] test: skip unstable 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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', () => { -- 2.34.1