Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/parallel/test-inspector-close-terminate-connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ async function test() {
const instance = new NodeInstance(['--inspect-brk=0'], script);
const session = await instance.connectInspectorSession();

// Enable Runtime domain and wait for an event to confirm the session is live.
await session.send({ method: 'Runtime.enable' });
await session.waitForNotification('Runtime.executionContextCreated');
// Wait until the child is ready to receive the resume command.
await session.send({ method: 'NodeRuntime.enable' });
await session.waitForNotification('NodeRuntime.waitingForDebugger');

// Resume execution so the script calls inspector.close().
await session.send({ method: 'Runtime.runIfWaitingForDebugger' });
Expand Down
Loading