win,test: fix test-process-active-wraps.js
authorColin Ihrig <cjihrig@gmail.com>
Thu, 8 Jan 2015 19:42:41 +0000 (20:42 +0100)
committerEvan Lucas <bertbelder@gmail.com>
Thu, 8 Jan 2015 19:48:57 +0000 (20:48 +0100)
commitb5c9dcb6d73d97eb2763e368c693da4a62b2f362
tree57d53c041ecba7a24ab6100ce16ee8497e74bff7
parentc9fd9e21622abb7b3893af457f6aaafb2363ab46
win,test: fix test-process-active-wraps.js

b636ba8 broke this test, because it now takes a loop iteration or two
to resolve the loopback address. That consequence is that the TCPWrap
handle that we *don't* want to see is created a bit later, and also
destroyed later, so when we assert that the active handle list is empty
the TCPWrap object is still "busy" being closed.

Wait one extra loop iteration before checking there are no more active
handles. This allows name resolution and clean-up to finish before the
assertion.

BUG: https://github.com/iojs/io.js/issues/246
PR-URL: https://github.com/joyent/node/pull/8998
Reviewed-By: Bert Belder <bertbelder@gmail.com>
test/parallel/test-process-active-wraps.js