Skip to content

Commit

Permalink
test: replace error msg w/ template literal
Browse files Browse the repository at this point in the history
PR-URL: #15910
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
sashimii authored and MylesBorins committed Oct 25, 2017
1 parent bce1f38 commit cd57d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-cluster-send-handle-twice.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ if (cluster.isMaster) {
for (let i = 0; i < workers.toStart; ++i) {
const worker = cluster.fork();
worker.on('exit', common.mustCall(function(code, signal) {
assert.strictEqual(code, 0, 'Worker exited with an error code');
assert.strictEqual(signal, null, 'Worker exited by a signal');
assert.strictEqual(code, 0, `Worker exited with an error code: ${code}`);
assert.strictEqual(signal, null, `Worker exited by a signal: ${signal}`);
}));
}
} else {
Expand Down

0 comments on commit cd57d2d

Please sign in to comment.