mirror of
https://github.com/stablyai/orca.git
synced 2026-10-26 16:02:42 +00:00
test(terminal): assert bounded probe during stalled reveal
Add assertion to verify that a stalled reveal operation makes exactly one `getMainBufferSnapshot` call, ensuring retry logic doesn't introduce redundant probes that would extend the timeout window before relay fallback.
This commit is contained in:
@@ -19898,6 +19898,9 @@ describe('connectPanePty', () => {
|
||||
await flushAsyncTicks(20)
|
||||
|
||||
expect(writes).toContain('relay-fallback-output')
|
||||
// Why: a stalled reveal must cost exactly one bounded probe — a re-probe
|
||||
// would buy a second timeout window before the relay paint.
|
||||
expect(window.api.pty.getMainBufferSnapshot).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('does not auto-reconnect after a user cancels deferred SSH passphrase auth', async () => {
|
||||
|
||||
Reference in New Issue
Block a user