summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-client-abort.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 13:19:00 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 11:43:52 +0000
commit7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f (patch)
treea971102d320e17e6cb3d00c48fe708b2b86c8136 /test/parallel/test-http-client-abort.js
parent1ef401ce92d6195878b9d041cc969612628f5852 (diff)
downloadandroid-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.tar.gz
android-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.tar.bz2
android-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.zip
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically. 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-client-abort.js')
-rw-r--r--test/parallel/test-http-client-abort.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-http-client-abort.js b/test/parallel/test-http-client-abort.js
index 4f46128f0e..738c620815 100644
--- a/test/parallel/test-http-client-abort.js
+++ b/test/parallel/test-http-client-abort.js
@@ -3,7 +3,7 @@ require('../common');
const assert = require('assert');
const http = require('http');
-var clientAborts = 0;
+let clientAborts = 0;
const server = http.Server(function(req, res) {
console.log('Got connection');
@@ -23,17 +23,17 @@ const server = http.Server(function(req, res) {
});
});
-var responses = 0;
+let responses = 0;
const N = 8;
const requests = [];
server.listen(0, function() {
console.log('Server listening.');
- for (var i = 0; i < N; i++) {
+ for (let i = 0; i < N; i++) {
console.log('Making client ' + i);
- var options = { port: this.address().port, path: '/?id=' + i };
- var req = http.get(options, function(res) {
+ const options = { port: this.address().port, path: '/?id=' + i };
+ const req = http.get(options, function(res) {
console.log('Client response code ' + res.statusCode);
res.resume();