From eae2f86cdb691cda11fc7e2397dc621d66bd887f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 8 Apr 2016 11:03:22 -0700 Subject: [PATCH] test: fix flaky test-http-client-abort Fixes: https://github.com/nodejs/node/issues/6080 PR-URL: https://github.com/nodejs/node/pull/6124 Reviewed-By: Colin Ihrig Reviewed-By: Brian White Reviewed-By: James M Snell --- test/parallel/test-http-client-abort.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-http-client-abort.js b/test/parallel/test-http-client-abort.js index c3353bb72201b6..a7d0510070e8ee 100644 --- a/test/parallel/test-http-client-abort.js +++ b/test/parallel/test-http-client-abort.js @@ -1,11 +1,11 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); -var http = require('http'); +const common = require('../common'); +const assert = require('assert'); +const http = require('http'); var clientAborts = 0; -var server = http.Server(function(req, res) { +const server = http.Server(function(req, res) { console.log('Got connection'); res.writeHead(200); res.write('Working on it...'); @@ -30,8 +30,8 @@ var server = http.Server(function(req, res) { }); var responses = 0; -var N = 16; -var requests = []; +const N = 8; +const requests = []; server.listen(common.PORT, function() { console.log('Server listening.');