Skip to content

Commit 428c497

Browse files
committed
fix test
1 parent 45237cc commit 428c497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codex-rs/core/src/guardian/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn guardian_truncate_text_keeps_prefix_suffix_and_xml_marker() {
260260

261261
#[test]
262262
fn format_guardian_action_pretty_truncates_large_string_fields() -> serde_json::Result<()> {
263-
let patch = "line\n".repeat(10_000);
263+
let patch = "line\n".repeat(100_000);
264264
let action = GuardianApprovalRequest::ApplyPatch {
265265
id: "patch-1".to_string(),
266266
cwd: PathBuf::from("/tmp"),
@@ -271,6 +271,7 @@ fn format_guardian_action_pretty_truncates_large_string_fields() -> serde_json::
271271
let rendered = format_guardian_action_pretty(&action)?;
272272

273273
assert!(rendered.contains("\"tool\": \"apply_patch\""));
274+
assert!(rendered.contains("<truncated omitted_approx_tokens="));
274275
assert!(rendered.len() < patch.len());
275276
Ok(())
276277
}

0 commit comments

Comments
 (0)