test(oauth): make antigravity fixtures deterministic

This commit is contained in:
elky
2026-09-04 21:12:29 +08:00
parent 507cb33089
commit 784a1e0611
2 changed files with 26 additions and 2 deletions
@@ -947,7 +947,12 @@ mod tests {
hits: Arc::clone(&hits),
};
let adapter = GenericOAuthRefreshAdapter::default()
.with_token_url_for_tests("antigravity", "https://oauth.example/token");
.with_token_url_for_tests("antigravity", "https://oauth.example/token")
.with_oauth_credentials_for_tests(
"antigravity",
"test-client-id",
"test-client-secret",
);
assert!(adapter.supports(&transport));
assert!(adapter.should_refresh(&transport, None));