Skip to content
Merged
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
4 changes: 3 additions & 1 deletion packages/hub/src/node/__tests__/host-terminals.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ describe.runIf(process.platform === 'win32')('devframeTerminalHost child-process
}, 10_000)
// The host holds the `cmd.exe` wrapper, not the node child.
expect(session.getChildProcess()?.pid).not.toBe(pid)
return { session, pid, cleanup: () => rmSync(dir, { recursive: true, force: true }) }
// Windows releases the killed process's file handles asynchronously, so an
// immediate `rm` can still hit EPERM; retry until the handles are gone.
return { session, pid, cleanup: () => rmSync(dir, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 }) }
}

it('terminate() kills the process started by a .cmd shim', async () => {
Expand Down
Loading