From 672b64189735f5cb4dcd2f7354863954b628dea1 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sun, 18 Oct 2026 03:00:49 -0400 Subject: [PATCH] test(layout): the SSH binding test uses the shared spawn commit dependencies --- .../pty-spawn-ssh-binding-partition.test.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/persistence/loading-store/pty-spawn-ssh-binding-partition.test.ts b/src/main/persistence/loading-store/pty-spawn-ssh-binding-partition.test.ts index bd7881cd516..005e70c1725 100644 --- a/src/main/persistence/loading-store/pty-spawn-ssh-binding-partition.test.ts +++ b/src/main/persistence/loading-store/pty-spawn-ssh-binding-partition.test.ts @@ -2,7 +2,7 @@ import { expect, it, vi } from 'vitest' import { admitRuntimeSpawnPane, fixture } from './profile-state-delayed-authority-fixture' import { commitRuntimePtySpawn } from '../../ipc/pty/runtime/spawn-commit' import { createRuntimePtySpawnState } from '../../ipc/pty/runtime/spawn-state' -import type { PtyRuntimeControllerDeps } from '../../ipc/pty/runtime/controller-deps' +import { createPtySpawnCommitDependencies } from './pty-spawn-commit-dependencies-fixture' import { OrcaRuntimeService } from '../../runtime/orca-runtime' import { persistPtyIpcSpawnCommit } from '../../ipc/pty/ipc/spawn-commit-persist' import { createPtyIpcSpawnState } from '../../ipc/pty/ipc/spawn-state' @@ -94,13 +94,7 @@ it('binds a runtime-started SSH pane in the SSH partition it was admitted to', a const incarnationId = 'dddddddd-dddd-4ddd-8ddd-dddddddddddd' runtime.onPtySpawned(ptyId, incarnationId) runtime.beginPtyRegistration(ptyId, incarnationId) - // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: only commit runs; its runtime/store are real and preflight-only dependencies are unreachable. - const deps = { - runtime, - store, - options: {}, - sendPtySpawnedToRenderer: vi.fn() - } as PtyRuntimeControllerDeps + const deps = createPtySpawnCommitDependencies(runtime, store) const ctx = createRuntimePtySpawnState(deps, { ...pane, connectionId: 'ssh-1',