mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
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:
parent
ea7d588e20
commit
aadb756690
1 changed files with 2 additions and 0 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue