From 9580603fed3d0df0cc511c808fa531d14dbb4247 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Fri, 12 Sep 2025 11:53:34 -0400 Subject: [PATCH] patch-tools --- codex-rs/core/tests/suite/prompt_caching.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/codex-rs/core/tests/suite/prompt_caching.rs b/codex-rs/core/tests/suite/prompt_caching.rs index 346b52fbc5..79218e1f00 100644 --- a/codex-rs/core/tests/suite/prompt_caching.rs +++ b/codex-rs/core/tests/suite/prompt_caching.rs @@ -308,13 +308,13 @@ async fn prefixes_context_and_instructions_once_and_consistently_across_requests let body1 = requests[0].body_json::().unwrap(); let body1_input = body1["input"].as_array().unwrap(); assert_eq!( - body1_input.len(), - 3, - "expected UI, env item, and the user message" + body1["input"], + serde_json::json!([ + expected_ui_msg, + expected_env_msg_turn, + expected_user_message_1 + ]) ); - assert_eq!(&body1_input[0], &expected_ui_msg); - assert_eq!(&body1_input[1], &expected_env_msg_turn); - assert_eq!(body1_input.last().unwrap(), &expected_user_message_1); let env_texts: Vec<&str> = body1_input .iter()