MCPcopy Index your code
hub / github.com/nodejs/node / checkForced

Function checkForced

test/parallel/test-cluster-worker-forced-exit.js:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58function checkForced() {
59 const worker = cluster.fork();
60 worker
61 .on('online', common.mustCall(() => worker.process.disconnect()))
62 .on('exit', common.mustCall((status) => assert.strictEqual(status, 0)));
63}

Calls 2

disconnectMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected