Skip to content

Commit

Permalink
test: fix flaky test-http-client-abort
Browse files Browse the repository at this point in the history
Fixes: #6080
PR-URL: #6124
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and Myles Borins committed May 17, 2016
1 parent f717885 commit eae2f86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-http-client-abort.js
Original file line number Diff line number Diff line change
@@ -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...');
Expand All @@ -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.');
Expand Down

0 comments on commit eae2f86

Please sign in to comment.