mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -28,6 +28,6 @@ server.listen(common.PORT, 'localhost', function() {
|
||||
});
|
||||
});
|
||||
|
||||
process.exit(function() {
|
||||
process.on('exit', function() {
|
||||
assert.equal(2, conns);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user