summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-after-connect.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gibfahn@gmail.com>2017-03-09 18:11:21 +0000
committerMyles Borins <mylesborins@google.com>2017-04-18 20:01:49 -0400
commitdb61c952de2aa4591c60f4772fa62f0bc3474577 (patch)
tree9e585bb427b689eeb8ec431f6e8515595c7e6e5d /test/parallel/test-http-after-connect.js
parentde636980668017c2ed155ba6f75ac5e6a2af647b (diff)
downloadnode-new-db61c952de2aa4591c60f4772fa62f0bc3474577.tar.gz
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically. Backport-PR-URL: https://github.com/nodejs/node/pull/11775 PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-http-after-connect.js')
-rw-r--r--test/parallel/test-http-after-connect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-after-connect.js b/test/parallel/test-http-after-connect.js
index 0580f428ed..a93d0b83aa 100644
--- a/test/parallel/test-http-after-connect.js
+++ b/test/parallel/test-http-after-connect.js
@@ -3,7 +3,7 @@ const common = require('../common');
const assert = require('assert');
const http = require('http');
-var clientResponses = 0;
+let clientResponses = 0;
const server = http.createServer(common.mustCall(function(req, res) {
console.error('Server got GET request');
@@ -46,7 +46,7 @@ function doRequest(i) {
path: '/request' + i
}, common.mustCall(function(res) {
console.error('Client got GET response');
- var data = '';
+ let data = '';
res.setEncoding('utf8');
res.on('data', function(chunk) {
data += chunk;