Browse Source

Fix invalid timer test

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.
v0.9.1-release
isaacs 13 years ago
parent
commit
702b46c80d
  1. 2
      test/simple/test-timers-zero-timeout.js

2
test/simple/test-timers-zero-timeout.js

@ -38,8 +38,6 @@ var assert = require('assert');
process.on('exit', function() { process.on('exit', function() {
assert.equal(ncalled, 1); assert.equal(ncalled, 1);
// timer should be already closed
assert.equal(timer.close(), -1);
}); });
})(); })();

Loading…
Cancel
Save