test: fix test-tcp-wrap-listen
authorAlexis Campailla <alexis@janeasystems.com>
Tue, 4 Feb 2014 17:16:44 +0000 (09:16 -0800)
committerFedor Indutny <fedor.indutny@gmail.com>
Tue, 4 Feb 2014 18:51:11 +0000 (22:51 +0400)
commitbae545dab78d4b3c5425f119a8b5d7c6f2e9bd2b
treea3fc6ef693e60e7a5f81ea9a32152c087b5d077e
parent15de8c2b606cb5665b346516304c4ce0b381fc09
test: fix test-tcp-wrap-listen

If the call to writeBuffer completes asynchronously, we need to have
an oncomplete callback on the request object no matter what. The
writeQueueSize seems irrelvant to that regard.

Note that on Windows writeBuffer always completes asynchronously.

See related commit 9836a4eeda1e2d43aad0923f1f72b364792629bc
test/simple/test-tcp-wrap-listen.js