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.
This commit is contained in:
Teknium
2026-08-26 18:36:27 -07:00
parent d81b801fb4
commit 2a41f9b635
+5
View File
@@ -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)