mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Deflake process test
This commit is contained in:
committed by
Kai Tamkun
parent
e08573eb06
commit
dfb47d846f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user