Skip to content

Commit afacc3e

Browse files
author
hmammedzadeh
committed
refac: move a variable outside of server listener
1 parent 6e9f719 commit afacc3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-response-multiheaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const norepeat = [
2828
'age',
2929
'expires'
3030
];
31+
const runCount = 2;
3132

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

5051
server.listen(0, common.mustCall(function() {
51-
const runCount = 2;
5252
const countdown = new Countdown(runCount, () => server.close());
5353
for (let n = 1; n <= runCount; n++) {
5454
// this runs twice, the first time, the server will use

0 commit comments

Comments
 (0)