0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00

test: replacing assert message with template

PR-URL: https://github.com/nodejs/node/pull/15974
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Barry Tam 2017-10-06 10:54:24 -07:00 committed by Ruben Bridgewater
parent 0d38e6d01f
commit 96eba098ef
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -8,7 +8,7 @@ const cluster = require('cluster');
if (cluster.isMaster) {
cluster.on('exit', (worker, code) => {
assert.strictEqual(code, 0, 'worker exited with error');
assert.strictEqual(code, 0, `worker exited with code: ${code}, expected 0`);
});
return cluster.fork();