diff --git a/hive-agent/src/stream_enrich.rs b/hive-agent/src/stream_enrich.rs index 81724b38..866f2569 100644 --- a/hive-agent/src/stream_enrich.rs +++ b/hive-agent/src/stream_enrich.rs @@ -1249,7 +1249,7 @@ mod tests { #[test] fn a_long_tool_result_reports_its_line_count() { - let txt = (0..40).map(|i| format!("line {i}\n")).collect::(); + let txt = "line\n".repeat(40); let trimmed: String = txt.split_whitespace().collect::>().join(" "); assert!(summarize_tool_result(&txt, &trimmed).starts_with("40L ยท ")); }