Skip to content

The agent that grows with you

fix: restore the default resolving dial mock in the salvaged #95343 probe test

Teknium2a41f9b635f7
diff --git a/apps/desktop/src/store/gateway.test.ts b/apps/desktop/src/store/gateway.test.ts
index 9caf9b91e6b..708476242b9 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)