test: fix logic error in test-net-remote-address-port.js
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 11 Aug 2011 13:57:03 +0000 (15:57 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 11 Aug 2011 14:26:01 +0000 (16:26 +0200)
The test intended to register an 'at exit' listener
but called `process.exit()` instead.

test/simple/test-net-remote-address-port.js

index 1d4eafcea55e9752f198e729c94f117e32137957..8eaa516f37c0e3d32694813786efb1c87ef98da4 100644 (file)
@@ -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
+});