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:
parent
b9d777734d
commit
f52a8db280
@ -28,6 +28,6 @@ server.listen(common.PORT, 'localhost', function() {
|
||||
});
|
||||
});
|
||||
|
||||
process.exit(function() {
|
||||
process.on('exit', function() {
|
||||
assert.equal(2, conns);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user