From: Ben Noordhuis Date: Thu, 11 Aug 2011 13:57:03 +0000 (+0200) Subject: test: fix logic error in test-net-remote-address-port.js X-Git-Tag: v0.5.4~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f52a8db280512befb69eecfef8c65bdea48ffcd0;p=platform%2Fupstream%2Fnodejs.git test: fix logic error in test-net-remote-address-port.js The test intended to register an 'at exit' listener but called `process.exit()` instead. --- diff --git a/test/simple/test-net-remote-address-port.js b/test/simple/test-net-remote-address-port.js index 1d4eafcea..8eaa516f3 100644 --- a/test/simple/test-net-remote-address-port.js +++ b/test/simple/test-net-remote-address-port.js @@ -28,6 +28,6 @@ server.listen(common.PORT, 'localhost', function() { }); }); -process.exit(function() { +process.on('exit', function() { assert.equal(2, conns); -}); \ No newline at end of file +});