Skip to content

Commit 68488e9

Browse files
Bruce Laiaddaleax
Bruce Lai
authored andcommitted
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: nodejs#9981 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent deb9cc0 commit 68488e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-cluster-worker-death.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ if (!cluster.isMaster) {
88
} else {
99
var worker = cluster.fork();
1010
worker.on('exit', common.mustCall(function(exitCode, signalCode) {
11-
assert.equal(exitCode, 42);
12-
assert.equal(signalCode, null);
11+
assert.strictEqual(exitCode, 42);
12+
assert.strictEqual(signalCode, null);
1313
}));
1414
cluster.on('exit', common.mustCall(function(worker_) {
15-
assert.equal(worker_, worker);
15+
assert.strictEqual(worker_, worker);
1616
}));
1717
}

0 commit comments

Comments
 (0)