diff --git a/test/simple/test-http-flush.js b/test/simple/test-http-flush.js index 7da94e89dc..842cf8729e 100644 --- a/test/simple/test-http-flush.js +++ b/test/simple/test-http-flush.js @@ -26,11 +26,11 @@ var http = require('http'); http.createServer(function(req, res) { res.end('ok'); this.close(); -}).listen(function() { +}).listen(common.PORT, '127.0.0.1', function() { var req = http.request({ method: 'POST', - host: this.address().address, - port: this.address().port, + host: '127.0.0.1', + port: common.PORT, }); req.flush(); // Flush the request headers. req.flush(); // Should be idempotent.