Skip to content

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

test(channels): initialize bus and builtins in typing dispatch test

Steven Enamakel86ad55cddf70
diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
index 1c8a5e088b..52e2eff0b8 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
@@ -129,6 +129,10 @@ async fn message_dispatch_processes_messages_in_parallel() {
#[tokio::test]
async fn process_channel_message_sends_typing_before_the_provider_reply() {
let _bus_guard = use_real_agent_handler().await;
+ crate::core::bus::init().await.expect("bus init");
+ let _builtins =
+ crate::agent::harness::host_definition::AgentDefinitionRegistry::init_global_builtins()
+ .expect("built-in host agent definitions should load");
let linked = linked_telegram_runtime().await;
let channels_by_name = linked.channels();
@@ -235,7 +239,9 @@ async fn process_channel_message_sends_typing_before_the_provider_reply() {
let requests = linked.provider_request_paths().await;
assert!(
- requests.iter().any(|path| path.ends_with("/sendChatAction")),
+ requests
+ .iter()
+ .any(|path| path.ends_with("/sendChatAction")),
"the module-backed provider should receive a typing action: {requests:?}"
);
assert_eq!(