Permalink
Browse files

test: fix simple/test-process-active-wraps

Said test relies a great deal on internals and implementation details (I should
know, I wrote it). Patch it up to work with libuv's new refcounting scheme.
  • Loading branch information...
1 parent aaca3ee commit a0daf676b0ed6a6446d48b93eb92ea02170acd7c @bnoordhuis committed May 21, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/simple/test-process-active-wraps.js
@@ -48,7 +48,9 @@ function expect(activeHandles, activeRequests) {
process.nextTick(function() {
process.nextTick(function() {
- // the handles should be gone but the connect req could still be alive
- assert.equal(process._getActiveHandles().length, 0);
+ process.nextTick(function() {
+ // the handles should be gone but the connect req could still be alive
+ assert.equal(process._getActiveHandles().length, 0);
+ });
});
});

0 comments on commit a0daf67

Please sign in to comment.