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

Function testNoWaitOnStart

test/parallel/test-worker-debug.js:162–172  ·  view source on GitHub ↗
(session, post)

Source from the content-addressed store, hash-verified

160}
161
162async function testNoWaitOnStart(session, post) {
163 console.log('Test disabled waitForDebuggerOnStart');
164 await post('NodeWorker.enable', { waitForDebuggerOnStart: false });
165 let worker;
166 const promise = waitForWorkerAttach(session);
167 const exitPromise = runWorker(2, (w) => { worker = w; });
168 const { waitingForDebugger } = await promise;
169 assert.strictEqual(waitingForDebugger, false);
170 worker.postMessage('resume');
171 await exitPromise;
172}
173
174async function testTwoWorkers(session, post) {
175 console.log('Test attach to a running worker and then start a new one');

Callers 1

Calls 5

waitForWorkerAttachFunction · 0.85
postFunction · 0.70
runWorkerFunction · 0.70
logMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…