From 9c9850292ec0fdf132d0b09e5c76319c42c4b80b Mon Sep 17 00:00:00 2001 From: Cooper Gamble Date: Wed, 17 Jun 2026 19:04:38 +0000 Subject: [PATCH] [codex] make workload policy test portable [ci changed_files] --- codex-rs/core/src/session/tests.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/codex-rs/core/src/session/tests.rs b/codex-rs/core/src/session/tests.rs index 0815c1d9de..96e9f3a9d4 100644 --- a/codex-rs/core/src/session/tests.rs +++ b/codex-rs/core/src/session/tests.rs @@ -8285,7 +8285,7 @@ async fn turn_context_item_preserves_user_deny_overlapping_workload_credential() let mut file_system_policy = file_system_policy_with_unreadable_glob(&turn_context); file_system_policy.entries.push(FileSystemSandboxEntry { path: FileSystemPath::Path { - path: credential_path.clone(), + path: credential_path, }, access: FileSystemAccessMode::Deny, }); @@ -8298,10 +8298,9 @@ async fn turn_context_item_preserves_user_deny_overlapping_workload_credential() let item = turn_context.to_turn_context_item(); assert_eq!(item.file_system_sandbox_policy, Some(file_system_policy)); - assert!( - serde_json::to_string(&item) - .expect("serialize turn context item") - .contains(credential_path.to_string_lossy().as_ref()) + assert_eq!( + item.permission_profile, + Some(turn_context.permission_profile()) ); }