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 BridgeAR committed Oct 9, 2017
1 parent 0662ebe commit 3953164
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 3953164

Please sign in to comment.