Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(config): bind log text before iterating lines

Steven Enamakel1fd03764223d
diff --git a/crates/openhuman-core/src/config/schema/ephemeral_route_tests.rs b/crates/openhuman-core/src/config/schema/ephemeral_route_tests.rs
index dbb95ca2e0..dac3727c93 100644
--- a/crates/openhuman-core/src/config/schema/ephemeral_route_tests.rs
+++ b/crates/openhuman-core/src/config/schema/ephemeral_route_tests.rs
@@ -267,8 +267,8 @@ fn a_changed_route_is_applied_and_logged_once() {
.map(|entry| entry.endpoint.as_str()),
Some("http://127.0.0.1:9999/openai")
);
- let info_lines: Vec<_> = logs
- .text()
+ let text = logs.text();
+ let info_lines: Vec<_> = text
.lines()
.filter(|line| line.contains("INFO") && line.contains("[config][ephemeral-route]"))
.collect();