mirror of https://github.com/nodejs/node.git
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>pull/8135/head
parent
05b566a5ef
commit
8badb67761
|
@ -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();
|
||||
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue