mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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:
1 parent
b9d777734d
commit
f52a8db280
1 file changed
+2
-2
@@ -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