The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(turn-runner): fix tool-limit test to expect error instead of success
Steven Enamakele489cc608bd2
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rsindex b9c2dbe5ee..a5cad81fa6 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs@@ -201,9 +201,8 @@ async fn positive_scoped_tool_limit_caps_hosted_runner_inner() {}).await;- let outcome = outcome.expect("hosted runner succeeds with one permitted tool call");- assert_eq!(outcome.tool_calls, 1);- assert!(!outcome.hit_cap);+ let error = outcome.expect_err("hosted runner must stop at its one-call tool budget");+ assert!(format!("{error:#}").contains("tool-call limit"), "{error:#}");assert_eq!(tool_calls.load(std::sync::atomic::Ordering::SeqCst), 1);assert!(model_calls.load(std::sync::atomic::Ordering::SeqCst) >= 1);}