8000 test: fix flaky unrefed timers test by Trott · Pull Request #4599 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to l 8000 oad files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/parallel/test-timers-unrefd-interval-still-fires.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const common = require('../common');

const TEST_DURATION = common.platformTimeout(100);
const N = 5;
const N = 3;
var nbIntervalFired = 0;

const keepOpen = setTimeout(() => {
Expand All @@ -20,7 +20,7 @@ const timer = setInterval(() => {
timer._onTimeout = () => {
throw new Error('Unrefd interval fired after being cleared.');
};
setImmediate(() => clearTimeout(keepOpen));
clearTimeout(keepOpen);
}
}, 1);

Expand Down
0