Skip to content

Commit

Permalink
test: improve an error message
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15921
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
pomerantsev authored and addaleax committed Oct 11, 2017
1 parent 4f286cb commit bb4ad6e
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 bb4ad6e

Please sign in to comment.