Skip to content

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

test(host_agent): add context setup for unbound channel test

Steven Enamakel7fac39e36768
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
index ec83adce13..d36193ad3b 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
@@ -145,6 +145,12 @@ async fn an_unbound_channel_runs_the_orchestrator() {
let channel = Arc::new(crate::channels::runtime::TestChannel::new("telegram"));
let mut ctx = context(Arc::clone(&channel), config.clone());
+ Arc::get_mut(&mut ctx)
+ .expect("the channel context is shared only by this test")
+ .default_provider = Arc::new(crate::config::schema::EPHEMERAL_ROUTE_SLUG.to_string());
+ Arc::get_mut(&mut ctx)
+ .expect("the channel context remains uniquely owned")
+ .model = Arc::new("fixture".into());
let core = Arc::new(CoreContext::for_test_with_config(DomainSet::full(), config));
Arc::get_mut(&mut ctx)
.expect("the channel context is shared only by this test")