test: restore retry count assertion for RetryableQuotaError fallback

Address Gemini Code Assist review feedback: re-add mockFn call count
assertion to verify the retry logic attempts the expected number of
retries before triggering the fallback.
This commit is contained in:
kmaclip 2026-04-13 08:40:59 -04:00
parent ea7d588e20
commit aadb756690
No known key found for this signature in database
GPG key ID: 2E8A7BA456C48663

View file

@ -742,6 +742,8 @@ describe('retryWithBackoff', () => {
AuthType.LOGIN_WITH_GOOGLE,
expect.any(RetryableQuotaError),
);
// 3 attempts (initial + 2 retries) fail, then fallback triggers, then 1 success
expect(mockFn).toHaveBeenCalledTimes(4);
});
it('should trigger fallback for OAuth personal users on ModelNotFoundError', async () => {