diff --git a/test/js/web/timers/setTimeout.test.js b/test/js/web/timers/setTimeout.test.js index 0e3ba0078d..e24b1df2aa 100644 --- a/test/js/web/timers/setTimeout.test.js +++ b/test/js/web/timers/setTimeout.test.js @@ -154,7 +154,7 @@ it("Bun.sleep works with a Date object", async () => { var ten_ms = new Date(); ten_ms.setMilliseconds(ten_ms.getMilliseconds() + offset); await Bun.sleep(ten_ms); - expect(Math.ceil(performance.now() - now)).toBeGreaterThan(offset); + expect(Math.ceil(performance.now() - now)).toBeGreaterThanOrEqual(offset); }); it("Bun.sleep(Date) fulfills after Date", async () => {