Skip to content

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

test(host_agent): update channel configuration in dispatch tests

Steven Enamakel993225b4ef80
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 c55f2aada9..99d5dd5e4e 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
@@ -487,7 +487,10 @@ async fn native_host_agent_turn_enforces_the_configured_channel_deadline_inner()
origins: Arc::new(Mutex::new(Vec::new())),
});
let channel = Arc::new(crate::channels::runtime::TestChannel::new("telegram"));
- let mut ctx = context(Arc::clone(&channel), config(&tmp, Some("teeny-chat")));
+ let mut channel_config = config(&tmp, Some("teeny-chat"));
+ channel_config.modules.source = crate::config::schema::ModuleSourceMode::Linked;
+ channel_config.modules.allow_download = false;
+ let mut ctx = context(Arc::clone(&channel), channel_config);
Arc::get_mut(&mut ctx)
.expect("the test owns the runtime context")
.message_timeout_secs = timeout;