Skip to content

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

chore(tests): collapse multi-line function calls to single lines

Steven Enamakelb5bbc981fb43
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
index 47335e3a03..15f773c206 100644
--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs
@@ -17,10 +17,7 @@ async fn threshold_persists_outside_the_project_and_reads_back() {
let project = tmp.path().join("project");
std::fs::create_dir_all(&workspace).unwrap();
std::fs::create_dir_all(&project).unwrap();
- let store = new_tool_result_store(
- workspace.join("artifacts"),
- "session/one",
- );
+ let store = new_tool_result_store(workspace.join("artifacts"), "session/one");
let raw = format!(
"{} {}",
"x".repeat(4096),
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 5c5e4ef75c..6c88fb49ca 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,9 +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("tool-results/session/echo/c1.txt"))
- .expect("artifact written");
+ let stored = std::fs::read_to_string(tmp.path().join("tool-results/session/echo/c1.txt"))
+ .expect("artifact written");
assert_eq!(
stored, raw,
"the artifact must hold the tool's own output, not the rewritten copy"
@@ -158,9 +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("tool-results/session/echo/c1.txt"))
- .expect("artifact written");
+ let stored = std::fs::read_to_string(tmp.path().join("tool-results/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"