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

Function testNoSessionNoCrash

test/parallel/test-inspector-debug-end.js:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15async function testNoSessionNoCrash() {
16 console.log('Test there\'s no crash stopping server without connecting');
17 const instance = new NodeInstance('--inspect=0',
18 'process._debugEnd();process.exit(42);');
19 assert.strictEqual((await instance.expectShutdown()).exitCode, 42);
20}
21
22async function testSessionNoCrash() {
23 console.log('Test there\'s no crash stopping server after connecting');

Callers 1

runTestFunction · 0.85

Calls 2

expectShutdownMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected