test: improve an error message

PR-URL: https://github.com/nodejs/node/pull/15921
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Pavel Pomerantsev 2017-10-06 09:50:01 -07:00 committed by Ruben Bridgewater
parent b8b248a9b3
commit 0fbe0a02df
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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');
});