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 <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: cjihrig - Colin Ihrig <[email protected]> Reviewed-By: jasnell - James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
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

+2-2
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)