Skip to content

Commit

Permalink
test: fix flaky test-http-client-abort
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Apr 8, 2016
1 parent 7c9a691 commit 648fb5e
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 @@ -24,8 +24,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 648fb5e

Please sign in to comment.