Skip to content

Commit f52a8db

Browse files
committed
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.
1 parent b9d7777 commit f52a8db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ server.listen(common.PORT, 'localhost', function() {
2828
});
2929
});
3030

31-
process.exit(function() {
31+
process.on('exit', function() {
3232
assert.equal(2, conns);
33-
});
33+
});

0 commit comments

Comments
 (0)