diff options
Diffstat (limited to 'test/parallel/test-http-flush.js')
-rw-r--r-- | test/parallel/test-http-flush.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http-flush.js b/test/parallel/test-http-flush.js index 8dc7ba7418..8b3dacb803 100644 --- a/test/parallel/test-http-flush.js +++ b/test/parallel/test-http-flush.js @@ -1,15 +1,15 @@ 'use strict'; -var common = require('../common'); +require('../common'); var http = require('http'); http.createServer(function(req, res) { res.end('ok'); this.close(); -}).listen(common.PORT, '127.0.0.1', function() { +}).listen(0, '127.0.0.1', function() { var req = http.request({ method: 'POST', host: '127.0.0.1', - port: common.PORT, + port: this.address().port, }); req.flush(); // Flush the request headers. req.flush(); // Should be idempotent. |