mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 08:27:46 +08:00
test(oauth): make antigravity fixtures deterministic
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user