From 989ae81c713cbf97f6aa0ecf4a3674a881b2a7e8 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 21 May 2012 18:00:25 +0200 Subject: [PATCH] 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. --- test/simple/test-process-active-wraps.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/simple/test-process-active-wraps.js b/test/simple/test-process-active-wraps.js index 254e0bf..3fdf993 100644 --- a/test/simple/test-process-active-wraps.js +++ b/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); + }); }); }); -- 2.7.4