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(orchestration): assert provider invocation after child failure
Steven Enamakelff9e06686feb
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex 1735c801e8..9359604aa1 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -332,11 +332,15 @@ async fn failed_async_child_is_reported_to_the_parent_without_a_success_result()}}).await;- let invocation_count = invocations.load(std::sync::atomic::Ordering::SeqCst);- assert!(invocation_count > 0, "the injected provider must be called");let failure = failure_result.unwrap_or_else(|elapsed| {+ let invocation_count = invocations.load(std::sync::atomic::Ordering::SeqCst);panic!("asynchronous child failure reaches the parent after {elapsed}; provider calls={invocation_count}")});+ let invocation_count = invocations.load(std::sync::atomic::Ordering::SeqCst);+ assert!(+ invocation_count > 0,+ "the injected provider must be called before reporting a child failure: {failure}"+ );assert!(failure.starts_with("spawn_subagent failed and did not complete"),"failure copy remains recognizable to the parent: {failure}"