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 11, 2017
1 parent 27e0532 commit a14b447
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 @@ -79,7 +79,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 a14b447

Please sign in to comment.