Deflake process test

This commit is contained in:
Jarred Sumner
2024-12-15 00:47:59 -08:00
committed by Kai Tamkun
parent e08573eb06
commit dfb47d846f

View File

@@ -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);