Skip to content

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

test: assert fixture registration succeeds in subagent control tests

Steven Enamakel20e06b924a1a
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
index 32a8b95b6a..62d0d075ae 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
@@ -97,7 +97,8 @@ async fn cancel_of_a_finished_run_reports_its_outcome_and_rewrites_nothing() {
Arc::new(RunQueue::new()),
tokio::spawn(async {}).abort_handle(),
rx,
- );
+ )
+ .expect("fixture registration admitted");
tx.send(status).expect("status channel open");
let mut params = Map::new();
diff --git a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs
index fedc3420a6..a7c86a3425 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs
@@ -580,7 +580,8 @@ async fn unscoped_cancel_stops_the_threads_detached_subagents() {
std::sync::Arc::new(tinyagents_harness::run_queue::RunQueue::new()),
child.abort_handle(),
status_rx,
- );
+ )
+ .expect("fixture registration admitted");
// A scoped cancel for some other request is not a Stop: the child lives.
let scoped = channel_web_cancel("stop-client", thread_id, Some("req-unrelated"))