Skip to content

Commit

Permalink
test: replacing assert message with template
Browse files Browse the repository at this point in the history
PR-URL: #15974
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Barry Tam authored and MylesBorins committed Oct 11, 2017
1 parent 75ab6c0 commit ab046be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-disconnect-suicide-race.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ab046be

Please sign in to comment.