From 0edd93dcc1e0083511fc82fd5c44e96949200a4b Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 21 Dec 2012 16:59:20 +0000 Subject: [PATCH] test: Fix simple/test-http-localaddress --- test/simple/test-http-localaddress-bind-error.js | 1 + test/simple/test-http-localaddress.js | 2 ++ 2 files changed, 3 insertions(+) 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(); });