Skip to content

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

test(dispatch): assert failure message on job output

Steven Enamakelb8a7c42fbee5
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
index a519c9c89f..14dc160f14 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
@@ -219,7 +219,7 @@ async fn config_delegate_dispatch_preserves_tool_failure_in_shared_jobs() {
assert!(jobs.list().iter().any(|job| {
job.agent == "configured-error"
&& job.status == tinyagents_orchestration::subagent::SubAgentJobStatus::Incomplete
- && job.error.as_deref().is_some_and(|error| {
+ && job.output.as_deref().is_some_and(|error| {
error.contains("configured policy rejected the request")
})
}), "the registered job retains the configured product failure");