Skip to content

Commit b88da49

Browse files
apapirovskijoyeecheung
authored andcommitted
test: fix flaky interval test
PR-URL: #18161 Fixes: #18160 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent dbdcf12 commit b88da49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-timers-set-interval-excludes-callback-duration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ let first;
88
const t = setInterval(() => {
99
cntr++;
1010
if (cntr === 1) {
11-
first = Timer.now();
1211
common.busyLoop(100);
12+
first = Timer.now();
1313
} else if (cntr === 2) {
14-
assert(Timer.now() - first < 120);
14+
assert(Timer.now() - first < 100);
1515
clearInterval(t);
1616
}
1717
}, 100);

0 commit comments

Comments
 (0)