test: replace error msg w/ template literal · nodejs/node@cd57d2d

Original file line numberDiff line numberDiff line change

@@ -14,8 +14,8 @@ if (cluster.isMaster) {

1414

for (let i = 0; i < workers.toStart; ++i) {

1515

const worker = cluster.fork();

1616

worker.on('exit', common.mustCall(function(code, signal) {

17-

assert.strictEqual(code, 0, 'Worker exited with an error code');

18-

assert.strictEqual(signal, null, 'Worker exited by a signal');

17+

assert.strictEqual(code, 0, `Worker exited with an error code: ${code}`);

18+

assert.strictEqual(signal, null, `Worker exited by a signal: ${signal}`);

1919

}));

2020

}

2121

} else {