summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
diff options
context:
space:
mode:
authorBryan Morgan <[email protected]>2025-07-09 10:18:15 -0400
committerGitHub <[email protected]>2025-07-09 14:18:15 +0000
commitb0cce952860b9ff51a0f731fbb8a7649ead23530 (patch)
treefe38d1d2fd4e313f7802d835c64297827eca7817 /packages/cli/src/ui/hooks/useGeminiStream.test.tsx
parent8f2da86aa521c2a0c3f5bfc72abe346182d2f963 (diff)
Improve quota- and resource-related 429 error handling, also taking Code Assist customer tiers into consideration (#3609)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.test.tsx')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.test.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
index 3a002919..fc6f93c5 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
+++ b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
@@ -1097,6 +1097,7 @@ describe('useGeminiStream', () => {
getContentGeneratorConfig: vi.fn(() => ({
authType: mockAuthType,
})),
+ getModel: vi.fn(() => 'gemini-2.5-pro'),
} as unknown as Config;
const { result } = renderHook(() =>
@@ -1125,6 +1126,9 @@ describe('useGeminiStream', () => {
expect(mockParseAndFormatApiError).toHaveBeenCalledWith(
'Rate limit exceeded',
mockAuthType,
+ undefined,
+ 'gemini-2.5-pro',
+ 'gemini-2.5-flash',
);
});
});