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 <[email protected]>
Reviewed-By: Brian White <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and Myles Borins committed Apr 20, 2016
1 parent fc89d17 commit 476535c
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 476535c

Please sign in to comment.