Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refac: move a variable outside of server listener
  • Loading branch information
hmammedzadeh committed Dec 4, 2017
commit afacc3e0f081fb8e29fe667abd0ee9720fafb36f
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