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

Function checkUnforced

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

Source from the content-addressed store, hash-verified

47checkForced();
48
49function checkUnforced() {
50 const worker = cluster.fork();
51 worker
52 .on('online', common.mustCall(() => worker.disconnect()))
53 .on('exit', common.mustCall((status) => {
54 assert.strictEqual(status, SENTINEL);
55 }));
56}
57
58function checkForced() {
59 const worker = cluster.fork();

Calls 2

disconnectMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…