Skip to content

Commit cad6bfa

Browse files
jdmarshallRafaelGSS
authored andcommitted
fix: Clock inaccuracy in libuv is causing flaky tests.
github.com/libuv/libuv/issues/4773
1 parent e188e50 commit cad6bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/time-mode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("Time-based Benchmarking", () => {
5252
// Verify the time is approximately correct (allow for some overhead)
5353
const measuredTime = results[0].totalTime * 1000; // Convert to ms
5454
assert.ok(
55-
measuredTime >= delayTime && measuredTime < delayTime + 20,
55+
measuredTime >= delayTime - 0.999 && measuredTime < delayTime + 20,
5656
`Measured time (${measuredTime}ms) should be close to expected delay (${delayTime}ms)`,
5757
);
5858

0 commit comments

Comments
 (0)