Skip to content

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

test(subagent_host): add debug output to waiter count timeout

Steven Enamakelb3d9fc05854f
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
index 578ca09bb5..eed0492335 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
@@ -175,12 +175,14 @@ async fn independent_host_bundles_share_and_project_the_persisted_winner() {
.run(&cancelled_parent, "produce a report".into())
.await
});
+ eprintln!("DBG waiting for waiters");
tokio::time::timeout(std::time::Duration::from_secs(5), async {
while leader_entry.waiter_count() != 2 {
tokio::task::yield_now().await;
}
})
.await
+ .map_err(|e| { eprintln!("DBG waiter_count={} execs={}", leader_entry.waiter_count(), executions.load(std::sync::atomic::Ordering::SeqCst)); e })
.expect("both independent host bundles join the leader's flight");
observer_cancellation.cancel();