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 17, 2017
1 parent 79667a8 commit 734642d
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 734642d

Please sign in to comment.