Skip to content

Commit

Permalink
refac: introduce a variable to store count of runs
Browse files Browse the repository at this point in the history
  • Loading branch information
hmammedzadeh committed Dec 3, 2017
1 parent 8365fc7 commit 6e9f719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-http-response-multiheaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ const server = http.createServer(function(req, res) {
});

server.listen(0, common.mustCall(function() {
const countdown = new Countdown(2, () => server.close());
for (let n = 1; n <= 2; n++) {
const runCount = 2;
const countdown = new Countdown(runCount, () => server.close());
for (let n = 1; n <= runCount; n++) {
// this runs twice, the first time, the server will use
// setHeader, the second time it uses writeHead. The
// result on the client side should be the same in
Expand Down

0 comments on commit 6e9f719

Please sign in to comment.