From 2a41f9b635f74e779cc097834857f954758a4f4c Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 26 Aug 2026 18:36:27 -0700 Subject: [PATCH] fix: restore the default resolving dial mock in the salvaged #95343 probe test The #92434 mid-handshake pin (added on main after #95343 branched) latches gatewayMocks.connect on a never-resolving mockImplementation; vi.clearAllMocks() clears calls, not implementations, so the salvaged wedged-probe test inherited a dial that never completes and timed out. --- apps/desktop/src/store/gateway.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/src/store/gateway.test.ts b/apps/desktop/src/store/gateway.test.ts index 9caf9b91e6..708476242b 100644 --- a/apps/desktop/src/store/gateway.test.ts +++ b/apps/desktop/src/store/gateway.test.ts @@ -295,6 +295,11 @@ describe('secondary connection timeout (#93454)', () => { installDesktop({ getConnection }) + // The #92434 pin above leaves gatewayMocks.connect latched on a + // never-resolving mockImplementation (vi.clearAllMocks() clears calls, not + // implementations). Restore the default resolving dial for this test. + gatewayMocks.connect.mockImplementation(async () => undefined) + const pending = ensureGatewayForProfile('work') await vi.advanceTimersByTimeAsync(20_000)