Skip to content

Commit

Permalink
test: replacing assert message with template
Browse files Browse the repository at this point in the history
PR-URL: nodejs#15974
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Barry Tam authored and BridgeAR committed Oct 8, 2017
1 parent 0d38e6d commit 96eba09
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 96eba09

Please sign in to comment.