Skip to content

Commit

Permalink
test: improve an error message
Browse files Browse the repository at this point in the history
PR-URL: #15921
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
pomerantsev authored and MylesBorins committed Oct 18, 2017
1 parent 478647e commit 6e96829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-cluster-master-kill.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ if (cluster.isWorker) {
}));

process.once('exit', () => {
assert.strictEqual(typeof pid, 'number', 'did not get worker pid info');
assert.strictEqual(typeof pid, 'number',
`got ${pid} instead of a worker pid`);
assert.strictEqual(alive, false, 'worker was alive after master died');
});

Expand Down

0 comments on commit 6e96829

Please sign in to comment.