mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
Fix the workspace policy test's auth loading call (#59501)
Update `workspace_policy_change_rejects_pending_transient_auth_fallback` to pass `None` for `cached_auth` and unwrap the `load_auth` result before checking the fallback credentials. GitOrigin-RevId: 09b7812f2f072389f9633de977e63edfa45186ed
This commit is contained in:
committed by
copyberry
parent
dc1cc0a0e8
commit
6744e5eb79
@@ -1771,7 +1771,10 @@ async fn workspace_policy_change_rejects_pending_transient_auth_fallback() {
|
||||
.expect("external auth should install");
|
||||
|
||||
let generation = manager.auth_change_state_receiver().borrow().generation;
|
||||
let fallback = manager.load_auth().await;
|
||||
let fallback = manager
|
||||
.load_auth(/*cached_auth*/ None)
|
||||
.await
|
||||
.expect("external auth fallback should load");
|
||||
assert_eq!(
|
||||
fallback
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user