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 <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
sashimii authored and MylesBorins committed Oct 11, 2017
1 parent 181d4bf commit 9f9bd38
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 @@ -35,8 +35,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 9f9bd38

Please sign in to comment.