From dfb47d846f47e3ea01fe3d8d34ffda4120418261 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 15 Dec 2024 00:47:59 -0800 Subject: [PATCH] Deflake process test --- test/js/node/process/process.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/js/node/process/process.test.js b/test/js/node/process/process.test.js index 09f9bb28f4..811abfb4bb 100644 --- a/test/js/node/process/process.test.js +++ b/test/js/node/process/process.test.js @@ -123,8 +123,8 @@ it("process.hrtime()", async () => { const end = process.hrtime(start); expect(end[0]).toBe(0); - // Flaky on Ubuntu. - await Bun.sleep(0); + // Flaky on Ubuntu & Windows. + await Bun.sleep(16); const end2 = process.hrtime(); expect(end2[1] > start[1]).toBe(true);