test(ssh): update IPC exit fixtures for incarnations

This commit is contained in:
Brennan Benson
2026-08-17 00:16:10 -07:00
parent bd4c391c68
commit 38a533c059
4 changed files with 8 additions and 2 deletions
@@ -284,6 +284,7 @@ describe('SSH IPC handlers', () => {
code: number
providerGeneration: number
ptyIncarnation: string
incarnationId: string
}) => void)
| undefined
const onDetectedPorts = mockPortScannerCallbacks.get('ssh-1') as
@@ -314,7 +315,8 @@ describe('SSH IPC handlers', () => {
id: 'remote-pty',
code: 9,
providerGeneration: mockPtyProvider.providerGeneration,
ptyIncarnation: 'ipc-test-pty'
ptyIncarnation: 'ipc-test-pty',
incarnationId: 'ipc-test-incarnation'
})
onDetectedPorts?.(
'ssh-1',
+1
View File
@@ -49,6 +49,7 @@ export type SshPtyProviderMock = {
onData: Mock
onExit: Mock
onReplay: Mock
acceptAmbiguousExitPty: Mock
attach: Mock
attachForReconnect: Mock
shutdown: Mock
+1
View File
@@ -54,6 +54,7 @@ export function createSshIpcMocks(): SshIpcMocks {
onData: vi.fn(),
onExit: vi.fn(),
onReplay: vi.fn(),
acceptAmbiguousExitPty: vi.fn(),
attach: vi.fn(),
attachForReconnect: vi.fn().mockResolvedValue({}),
shutdown: vi.fn(),
@@ -71,6 +71,7 @@ describe('SSH IPC handlers', () => {
code: number
providerGeneration: number
ptyIncarnation: string
incarnationId: string
}) => void)
| undefined
@@ -85,7 +86,8 @@ describe('SSH IPC handlers', () => {
id: 'remote-pty',
code: 7,
providerGeneration: mockPtyProvider.providerGeneration,
ptyIncarnation: 'ipc-test-pty'
ptyIncarnation: 'ipc-test-pty',
incarnationId: 'ipc-test-incarnation'
})
expect(mockAcceptSshPtyOutputData).toHaveBeenCalledWith({