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:
Benjamin Carlsson
2026-11-04 22:03:18 +00:00
committed by copyberry
parent dc1cc0a0e8
commit 6744e5eb79
+4 -1
View File
@@ -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()