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:
parent
b8b248a9b3
commit
0fbe0a02df
@ -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');
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user