Skip to content

Commit

Permalink
refac: move a variable outside of server listener
Browse files Browse the repository at this point in the history
  • Loading branch information
hmammedzadeh committed Dec 4, 2017
1 parent 6e9f719 commit afacc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-response-multiheaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const norepeat = [
'age',
'expires'
];
const runCount = 2;

const server = http.createServer(function(req, res) {
const num = req.headers['x-num'];
Expand All @@ -48,7 +49,6 @@ const server = http.createServer(function(req, res) {
});

server.listen(0, common.mustCall(function() {
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
Expand Down

0 comments on commit afacc3e

Please sign in to comment.