From 755c4d94bc41f9f259929b5463ec8bd5686aba68 Mon Sep 17 00:00:00 2001 From: weewey Date: Thu, 27 Apr 2017 00:31:10 +0800 Subject: [PATCH] removing usages of expectResponseCount and responseCount --- test/parallel/test-https-strict.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index 31b3c0f80f3017..70e11d2c8b2ab1 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -91,8 +91,6 @@ server2.listen(0, listening()); server3.listen(0, listening()); const responseErrors = {}; -let expectResponseCount = 0; -let responseCount = 0; let pending = 0; @@ -147,12 +145,10 @@ function makeReq(path, port, error, host, ca) { options.headers = { host: host }; } const req = https.get(options); - expectResponseCount++; const server = port === server1.address().port ? server1 : port === server2.address().port ? server2 : port === server3.address().port ? server3 : null; - if (!server) throw new Error('invalid port: ' + port); server.expectCount++;