File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
codex-rs/core/src/guardian Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ fn guardian_truncate_text_keeps_prefix_suffix_and_xml_marker() {
260260
261261#[ test]
262262fn 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}
You can’t perform that action at this time.
0 commit comments