mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
test(ssh): update IPC exit fixtures for incarnations
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -49,6 +49,7 @@ export type SshPtyProviderMock = {
|
||||
onData: Mock
|
||||
onExit: Mock
|
||||
onReplay: Mock
|
||||
acceptAmbiguousExitPty: Mock
|
||||
attach: Mock
|
||||
attachForReconnect: Mock
|
||||
shutdown: Mock
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user