summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-12-21 16:59:20 +0000
committerisaacs <i@izs.me>2012-12-21 16:59:20 +0000
commit0edd93dcc1e0083511fc82fd5c44e96949200a4b (patch)
tree6ce14c75c88887dbbf4fe40288072dfa78edfcd6 /test
parentfb915ed9573d21c5b62c13b8eaa9642a6dbb4b02 (diff)
downloadnode-new-0edd93dcc1e0083511fc82fd5c44e96949200a4b.tar.gz
test: Fix simple/test-http-localaddress
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-http-localaddress-bind-error.js1
-rw-r--r--test/simple/test-http-localaddress.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/test/simple/test-http-localaddress-bind-error.js b/test/simple/test-http-localaddress-bind-error.js
index 0f9cdbbc0c..719525cc61 100644
--- a/test/simple/test-http-localaddress-bind-error.js
+++ b/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() {
diff --git a/test/simple/test-http-localaddress.js b/test/simple/test-http-localaddress.js
index 1843d821be..d5778e09b0 100644
--- a/test/simple/test-http-localaddress.js
+++ b/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();
});