Skip to content

Commit

Permalink
test: fix error in test-cluster-worker-death.js
Browse files Browse the repository at this point in the history
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: #9981
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
Bruce Lai authored and addaleax committed Dec 8, 2016
1 parent b67cad1 commit 778e5f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-cluster-worker-death.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ if (!cluster.isMaster) {
} else {
var worker = cluster.fork();
worker.on('exit', common.mustCall(function(exitCode, signalCode) {
assert.equal(exitCode, 42);
assert.equal(signalCode, null);
assert.strictEqual(exitCode, 42);
assert.strictEqual(signalCode, null);
}));
cluster.on('exit', common.mustCall(function(worker_) {
assert.equal(worker_, worker);
assert.strictEqual(worker_, worker);
}));
}

0 comments on commit 778e5f7

Please sign in to comment.