Skip to content

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

test(tools): pause tokio time in async child failure test

Steven Enamakel1492942d3ada
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.rs
index 40f162c91d..93bf593e14 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
@@ -280,7 +280,7 @@ async fn spawn_subagent_reports_a_stopped_child_as_incomplete_progress() {
);
}
-#[tokio::test]
+#[tokio::test(start_paused = true)]
#[cfg(feature = "storage-sqlite")]
async fn failed_async_child_is_reported_to_the_parent_without_a_success_result() {
let _ = AgentDefinitionRegistry::init_global_builtins();
@@ -330,7 +330,7 @@ async fn failed_async_child_is_reported_to_the_parent_without_a_success_result()
accepted.output()
);
- let failure_result = tokio::time::timeout(std::time::Duration::from_secs(30), async {
+ let failure_result = tokio::time::timeout(std::time::Duration::from_secs(120), async {
loop {
match progress_rx.recv().await {
Some(crate::progress::AgentProgress::SubagentFailed {