Skip to content

Commit

Permalink
fixup! timers: use timerListMap and outstandingQueue to count timers
Browse files Browse the repository at this point in the history
  • Loading branch information
RaisinTen committed Dec 18, 2021
1 parent 206ac18 commit f973ffe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const assert = require('assert');
assert.strictEqual(process.getActiveResourcesInfo().filter(
(type) => type === 'Timeout').length, 0);

setTimeout(common.mustCall(function () {
setTimeout(common.mustCall(function() {
// TODO(RaisinTen): This should be the correct behaviour.
// assert.strictEqual(process.getActiveResourcesInfo().filter(
// (type) => type === 'Timeout').length, 1);
Expand All @@ -27,7 +27,7 @@ const assert = require('assert');
assert.strictEqual(process.getActiveResourcesInfo().filter(
(type) => type === 'Immediate').length, 0);

setImmediate(common.mustCall(function () {
setImmediate(common.mustCall(function() {
// TODO(RaisinTen): Change this test to the following when the Immediate is
// destroyed and unrefed after the callback gets executed.
// assert.strictEqual(process.getActiveResourcesInfo().filter(
Expand Down

0 comments on commit f973ffe

Please sign in to comment.