8000 test, refactor: reduce time judgment in testing to avoid misjudgment. · fibjs/fibjs@b7c8f96 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit b7c8f96

Browse files
committed
test, refactor: reduce time judgment in testing to avoid misjudgment.
1 parent 5881ac6 commit b7c8f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/timer_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ describe("timer", () => {
452452
timers.call(test2, 30);
453453
});
454454
var t2 = new Date();
455-
assert.greaterThan(t2 - t1, 30);
455+
assert.greaterThan(t2 - t1, 25);
456456
assert.lessThan(t2 - t1, 1000);
457457
});
458458

0 commit comments

Comments
 (0)
0