From 6744e5eb79ec23b96cdfacf713b348a74f410702 Mon Sep 17 00:00:00 2001 From: Benjamin Carlsson Date: Wed, 4 Nov 2026 21:48:01 +0000 Subject: [PATCH] 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 --- codex-rs/login/src/auth/auth_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/login/src/auth/auth_tests.rs b/codex-rs/login/src/auth/auth_tests.rs index bb145280e2..ee67606f3f 100644 --- a/codex-rs/login/src/auth/auth_tests.rs +++ b/codex-rs/login/src/auth/auth_tests.rs @@ -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()