Skip to content

Commit

Permalink
test: use strict equality in regression test
Browse files Browse the repository at this point in the history
Replace `==` with `===` and `assert.strictEqual()` in
test-regress-GH-877.js.

PR-URL: #8098
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information
Trott authored and Myles Borins committed Oct 10, 2016
1 parent 5f74551 commit 9e7a386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sequential/test-regress-GH-877.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ server.listen(common.PORT, '127.0.0.1', function() {
};

var req = http.get(options, function(res) {
if (++responses == N) {
if (++responses === N) {
server.close();
}
res.resume();
Expand All @@ -47,6 +47,6 @@ server.listen(common.PORT, '127.0.0.1', function() {
});

process.on('exit', function() {
assert.ok(responses == N);
assert.strictEqual(responses, N);
assert.ok(maxQueued <= 10);
});

0 comments on commit 9e7a386

Please sign in to comment.