Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()"
  • Loading branch information
Bruce Lai committed Dec 1, 2016
commit b6044ef2f511e9dd551f89c675a5794802372112
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);
}));
}