diff options
author | Rich Trott <rtrott@gmail.com> | 2016-08-17 16:14:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-08-19 16:30:28 -0700 |
commit | c89b6ee347f0247254fb08999d06301937a965fd (patch) | |
tree | 86c8b742ef2827fdedefd4678e05617dad4ed090 /test/parallel/test-http-get-pipeline-problem.js | |
parent | 76007079ec866317c0119b1f4526d0f67b3998fc (diff) | |
download | android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.tar.gz android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.tar.bz2 android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.zip |
test: favor strict equality in http tests
PR-URL: https://github.com/nodejs/node/pull/8151
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-get-pipeline-problem.js')
-rw-r--r-- | test/parallel/test-http-get-pipeline-problem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-get-pipeline-problem.js b/test/parallel/test-http-get-pipeline-problem.js index 9f2287e299..cc681f675a 100644 --- a/test/parallel/test-http-get-pipeline-problem.js +++ b/test/parallel/test-http-get-pipeline-problem.js @@ -19,7 +19,7 @@ var total = 10; var requests = 0, responses = 0; var server = http.Server(function(req, res) { - if (++requests == total) { + if (++requests === total) { server.close(); } @@ -51,7 +51,7 @@ server.listen(0, function() { s.on('finish', function() { console.error('done ' + x); - if (++responses == total) { + if (++responses === total) { checkFiles(); } }); |