Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: update test-times-unrefed-in-callback.js
  • Loading branch information
ChatbotSchool committed Apr 22, 2017
commit 938fb991287ce4ef2777d77604833edbe76c439d
4 changes: 2 additions & 2 deletions test/parallel/test-timers-unrefed-in-callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ function Test2() {
// server only for maintaining event loop
const server = net.createServer().listen(0);

const timer2 = setInterval(common.mustCall(() => {
const timer2 = setInterval(() => {
timer2.unref();
if (counter2++ === 3)
server.close();
}, 4), 1);
}, 1);
}

Test1();