test: improve assert message
PR-URL: https://github.com/nodejs/node/pull/15909 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
1c28dfa09a
commit
b6a87dbe13
@ -49,7 +49,7 @@ if (cluster.isMaster) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const w = cluster.worker.disconnect();
|
const w = cluster.worker.disconnect();
|
||||||
assert.strictEqual(w, cluster.worker, 'did not return a reference');
|
assert.strictEqual(w, cluster.worker);
|
||||||
} else {
|
} else {
|
||||||
// Call destroy when worker is not disconnected yet
|
// Call destroy when worker is not disconnected yet
|
||||||
cluster.worker.destroy();
|
cluster.worker.destroy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user