Skip to content

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

style: collapse multi-line assert conditions in tinyagents middleware tests

Steven Enamakel224fc7a8dc46
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
index 7583958abb..d872105446 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
@@ -25,8 +25,7 @@ async fn sampling_tool_output_still_hits_the_byte_budget_backstop() {
let mw = truncation_probe_mw();
let payload = large_sample_response_json(400);
assert!(
- payload.len()
- > tinyagents_harness::config::TurnConfig::default().tool_result_budget_bytes,
+ payload.len() > tinyagents_harness::config::TurnConfig::default().tool_result_budget_bytes,
"test payload must exceed the shared byte budget: {} bytes",
payload.len()
);
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_compaction_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_compaction_tests.rs
index 75af8b55d4..63c42778ba 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_compaction_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_compaction_tests.rs
@@ -118,8 +118,7 @@ async fn tool_output_leaves_an_oversized_propose_workflow_byte_for_byte_intact()
let mw = truncation_probe_mw();
let payload = oversized_workflow_proposal_json(30);
assert!(
- payload.len()
- > tinyagents_harness::config::TurnConfig::default().tool_result_budget_bytes,
+ payload.len() > tinyagents_harness::config::TurnConfig::default().tool_result_budget_bytes,
"test payload must exceed the shared byte budget to exercise step 4: {} bytes",
payload.len()
);