Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix invalid timer test
Browse files Browse the repository at this point in the history
Previously, setTimeout(fn, 0) would create a new Timer() object,
which has a close() method (and is a bit slower).  The recent
change to more closely emulate browser setTimeout behavior dodges
this path, so this assertion is no longer valid.
  • Loading branch information
isaacs committed Mar 15, 2012
1 parent 7fc835a commit 702b46c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/simple/test-timers-zero-timeout.js
Expand Up @@ -38,8 +38,6 @@ var assert = require('assert');

process.on('exit', function() {
assert.equal(ncalled, 1);
// timer should be already closed
assert.equal(timer.close(), -1);
});
})();

Expand Down

0 comments on commit 702b46c

Please sign in to comment.