Skip to content

Commit 6bdc0e5

Browse files
Trottevanlucas
authored andcommitted
test: use strict equality in regression test
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>
1 parent cdcf23a commit 6bdc0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-regress-GH-877.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server.listen(common.PORT, '127.0.0.1', function() {
2525
};
2626

2727
var req = http.get(options, function(res) {
28-
if (++responses == N) {
28+
if (++responses === N) {
2929
server.close();
3030
}
3131
res.resume();
@@ -47,6 +47,6 @@ server.listen(common.PORT, '127.0.0.1', function() {
4747
});
4848

4949
process.on('exit', function() {
50-
assert.ok(responses == N);
50+
assert.strictEqual(responses, N);
5151
assert.ok(maxQueued <= 10);
5252
});

0 commit comments

Comments
 (0)