mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 16:10:59 -07:00
fix: consistent token caching and test updates for google-credentials provider
- Cache access tokens alongside ID tokens for consistent retry behavior - Add targetUrl to registry test assertion after merge - Add tests for cache hits, 403 retry, and retry exhaustion
This commit is contained in:
@@ -593,6 +593,7 @@ describe('AgentRegistry', () => {
|
||||
expect(A2AAuthProviderFactory.create).toHaveBeenCalledWith({
|
||||
authConfig: mockAuth,
|
||||
agentName: 'RemoteAgentWithAuth',
|
||||
targetUrl: 'https://example.com/card',
|
||||
agentCardUrl: 'https://example.com/card',
|
||||
});
|
||||
expect(loadAgentSpy).toHaveBeenCalledWith(
|
||||
|
||||
Reference in New Issue
Block a user