test: fix error in test-cluster-worker-death.js

Replaced calls to assert.equal with assert.strictEqual in order
to fix the following error:
"Please use assert.strictEqual() instead of assert.strictEqual()"

PR-URL: https://github.com/nodejs/node/pull/9981
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Bruce Lai 2016-12-01 10:49:39 -06:00 committed by Anna Henningsen
parent deb9cc0cde
commit 68488e9c75
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -8,10 +8,10 @@ if (!cluster.isMaster) {
} else { } else {
var worker = cluster.fork(); var worker = cluster.fork();
worker.on('exit', common.mustCall(function(exitCode, signalCode) { worker.on('exit', common.mustCall(function(exitCode, signalCode) {
assert.equal(exitCode, 42); assert.strictEqual(exitCode, 42);
assert.equal(signalCode, null); assert.strictEqual(signalCode, null);
})); }));
cluster.on('exit', common.mustCall(function(worker_) { cluster.on('exit', common.mustCall(function(worker_) {
assert.equal(worker_, worker); assert.strictEqual(worker_, worker);
})); }));
} }