mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
fix(subprocess): align async pid evidence
This commit is contained in:
@@ -155,7 +155,7 @@ function waitWithSignal<T>(promise: Promise<T>, signal: AbortSignal | undefined)
|
||||
})
|
||||
}
|
||||
|
||||
/** E2B-backed subprocess handle with deferred remote PID acquisition. */
|
||||
/** E2B-backed subprocess handle with private remote process-group tracking. */
|
||||
export class E2BSubprocessHandle implements SubprocessHandle {
|
||||
readonly stdin: Writable | undefined
|
||||
readonly stdout: PassThrough | undefined
|
||||
|
||||
@@ -179,8 +179,9 @@ describe.skipIf(!windowsNative)('Windows Job native containment', () => {
|
||||
if (command === undefined) throw new Error('expected ComSpec for the Windows runner test')
|
||||
const request = spec([command, '/d', '/s', '/c', 'exit 0'])
|
||||
const launch = launchWindowsJob(request)
|
||||
expect(launch.pid).toBeGreaterThan(0)
|
||||
expect(launch.pid).toBeUndefined()
|
||||
const failure = await launch.direct.catch((error: unknown) => error)
|
||||
expect(launch.pid).toBeGreaterThan(0)
|
||||
expect(failure).toMatchObject({
|
||||
message: 'injected runner cwd restoration failure',
|
||||
code: 'ENOENT',
|
||||
|
||||
Reference in New Issue
Block a user