Skip to content

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

fix(tests): reformat artifact path reads in tool output tests

Steven Enamakel31b52b3ca843
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
index 0d5f3989de..8392d28176 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
@@ -131,8 +131,8 @@ async fn an_oversized_result_is_stored_as_the_tool_returned_it_not_as_rewritten(
"an over-budget result is persisted: {}",
result_text(&result)
);
- let stored = std::fs::read_to_string(tmp.path().join("session/echo/c1.txt"))
- .expect("artifact written");
+ let stored =
+ std::fs::read_to_string(tmp.path().join("session/echo/c1.txt")).expect("artifact written");
assert_eq!(
stored, raw,
"the artifact must hold the tool's own output, not the rewritten copy"
@@ -157,8 +157,8 @@ async fn a_raw_result_file_read_cannot_open_is_stored_as_the_processed_copy() {
.0
.unwrap();
- let stored = std::fs::read_to_string(tmp.path().join("session/echo/c1.txt"))
- .expect("artifact written");
+ let stored =
+ std::fs::read_to_string(tmp.path().join("session/echo/c1.txt")).expect("artifact written");
assert_eq!(
stored, summary,
"a raw body over file_read's limit would be unreadable, so the processed copy is stored"