test(subprocess): drop obsolete cwd stubs

This commit is contained in:
Tianyi Cui committed 2026-08-08 21:27:59 +08:00
1 parent 6e4bdbf0df
commit d689907c12
2 files changed
-3

No files matched your search

@@ -66,7 +66,6 @@ function terminalHandle(): SubprocessTerminalHandle {
}
class StubSubprocessService extends SubprocessService {
readonly cwd = '/tmp'
async resolveExecutable(command: string): Promise<string> { return command }
spawn(_spec: SubprocessSpawnSpec): SubprocessHandle { throw new Error('unused') }
async spawnTerminal(_spec: SubprocessTerminalSpawnSpec): Promise<SubprocessTerminalHandle> {
@@ -16,8 +16,6 @@ import type {
* is all an implementation owes the abstract class.
*/
class StubSubprocessService extends SubprocessService {
readonly cwd = '/stub'
async resolveExecutable(command: string): Promise<string> {
return `/bin/${command}`
}