summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-agent-sni.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-https-agent-sni.js')
-rw-r--r--test/parallel/test-https-agent-sni.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-https-agent-sni.js b/test/parallel/test-https-agent-sni.js
index 4174fd0b9c..ca15dc3db3 100644
--- a/test/parallel/test-https-agent-sni.js
+++ b/test/parallel/test-https-agent-sni.js
@@ -16,7 +16,7 @@ const options = {
};
const TOTAL = 4;
-var waiting = TOTAL;
+let waiting = TOTAL;
const server = https.Server(options, function(req, res) {
if (--waiting === 0) server.close();
@@ -35,10 +35,10 @@ server.listen(0, function() {
});
}
- var agent = new https.Agent({
+ const agent = new https.Agent({
maxSockets: 1
});
- for (var j = 0; j < TOTAL; j++) {
+ for (let j = 0; j < TOTAL; j++) {
https.get({
agent: agent,