From f52a8db280512befb69eecfef8c65bdea48ffcd0 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 11 Aug 2011 15:57:03 +0200 Subject: [PATCH] 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. --- test/simple/test-net-remote-address-port.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-net-remote-address-port.js b/test/simple/test-net-remote-address-port.js index 1d4eafcea5..8eaa516f37 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 +});