Browse Source

test: use strict equality in regression test

Replace `==` with `===` and `assert.strictEqual()` in
test-regress-GH-877.js.

PR-URL: https://github.com/nodejs/node/pull/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>
v7.x
Rich Trott 8 years ago
parent
commit
8badb67761
  1. 4
      test/sequential/test-regress-GH-877.js

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

@ -25,7 +25,7 @@ server.listen(common.PORT, '127.0.0.1', function() {
}; };
var req = http.get(options, function(res) { var req = http.get(options, function(res) {
if (++responses == N) { if (++responses === N) {
server.close(); server.close();
} }
res.resume(); res.resume();
@ -47,6 +47,6 @@ server.listen(common.PORT, '127.0.0.1', function() {
}); });
process.on('exit', function() { process.on('exit', function() {
assert.ok(responses == N); assert.strictEqual(responses, N);
assert.ok(maxQueued <= 10); assert.ok(maxQueued <= 10);
}); });

Loading…
Cancel
Save