Browse Source

test: replacing assert message with template

PR-URL: https://github.com/nodejs/node/pull/15974
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v6.x-staging
Barry Tam 7 years ago
committed by Myles Borins
parent
commit
0c0717c47a
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      test/parallel/test-cluster-disconnect-suicide-race.js

2
test/parallel/test-cluster-disconnect-suicide-race.js

@ -8,7 +8,7 @@ const cluster = require('cluster');
if (cluster.isMaster) { if (cluster.isMaster) {
cluster.on('exit', (worker, code) => { 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(); return cluster.fork();

Loading…
Cancel
Save