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.
This commit is contained in:
Ben Noordhuis 2011-08-11 15:57:03 +02:00
parent b9d777734d
commit f52a8db280

View File

@ -28,6 +28,6 @@ server.listen(common.PORT, 'localhost', function() {
});
});
process.exit(function() {
process.on('exit', function() {
assert.equal(2, conns);
});
});