projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9d7777
)
test: fix logic error in test-net-remote-address-port.js
author
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 11 Aug 2011 13:57:03 +0000
(15:57 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 11 Aug 2011 14:26:01 +0000
(16:26 +0200)
The test intended to register an 'at exit' listener
but called `process.exit()` instead.
test/simple/test-net-remote-address-port.js
patch
|
blob
|
history
diff --git
a/test/simple/test-net-remote-address-port.js
b/test/simple/test-net-remote-address-port.js
index 1d4eafcea55e9752f198e729c94f117e32137957..8eaa516f37c0e3d32694813786efb1c87ef98da4 100644
(file)
--- a/
test/simple/test-net-remote-address-port.js
+++ b/
test/simple/test-net-remote-address-port.js
@@
-28,6
+28,6
@@
server.listen(common.PORT, 'localhost', function() {
});
});
-process.
exit(
function() {
+process.
on('exit',
function() {
assert.equal(2, conns);
-});
\ No newline at end of file
+});