Browse Source

test: Fix simple/test-http-localaddress

v0.9.4-release
isaacs 12 years ago
parent
commit
0edd93dcc1
  1. 1
      test/simple/test-http-localaddress-bind-error.js
  2. 2
      test/simple/test-http-localaddress.js

1
test/simple/test-http-localaddress-bind-error.js

@ -33,6 +33,7 @@ var server = http.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});
server.listen(common.PORT, "127.0.0.1", function() {

2
test/simple/test-http-localaddress.js

@ -36,6 +36,7 @@ var server = http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});
server.listen(common.PORT, "127.0.0.1", function() {
@ -50,6 +51,7 @@ server.listen(common.PORT, "127.0.0.1", function() {
server.close();
process.exit();
});
res.resume();
});
req.end();
});

Loading…
Cancel
Save