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

Function test

test/sequential/test-cluster-inspect-brk.js:13–30  ·  view source on GitHub ↗
(execArgv)

Source from the content-addressed store, hash-verified

11
12if (cluster.isPrimary) {
13 function test(execArgv) {
14
15 cluster.setupPrimary({
16 execArgv: execArgv,
17 stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'pipe'],
18 });
19
20 const worker = cluster.fork();
21
22 // Debugger listening on port [port].
23 worker.process.stderr.once('data', common.mustCall(function() {
24 worker.process.kill('SIGTERM');
25 }));
26
27 worker.process.on('exit', common.mustCall(function(code, signal) {
28 assert.strictEqual(signal, 'SIGTERM');
29 }));
30 }
31
32 test(['--inspect-brk']);
33 test([`--inspect-brk=${debuggerPort}`]);

Callers 1

Calls 3

killMethod · 0.80
onceMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…