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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user