Skip to content

Commit 9f9bd38

Browse files
sashimiiMylesBorins
authored andcommitted
test: replace error msg w/ template literal
PR-URL: #15910 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 181d4bf commit 9f9bd38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-cluster-send-handle-twice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ if (cluster.isMaster) {
3535
for (let i = 0; i < workers.toStart; ++i) {
3636
const worker = cluster.fork();
3737
worker.on('exit', common.mustCall(function(code, signal) {
38-
assert.strictEqual(code, 0, 'Worker exited with an error code');
39-
assert.strictEqual(signal, null, 'Worker exited by a signal');
38+
assert.strictEqual(code, 0, `Worker exited with an error code: ${code}`);
39+
assert.strictEqual(signal, null, `Worker exited by a signal: ${signal}`);
4040
}));
4141
}
4242
} else {

0 commit comments

Comments
 (0)