Skip to content

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

test(channels): clone channel handle in telegram round trip test

Steven Enamakelcaf8f76b89c7
diff --git a/crates/openhuman-core/src/channels/routes_command_tests.rs b/crates/openhuman-core/src/channels/routes_command_tests.rs
index 99e2d1935b..6240419d5e 100644
--- a/crates/openhuman-core/src/channels/routes_command_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_command_tests.rs
@@ -236,7 +236,7 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
config.modules.source = crate::config::schema::ModuleSourceMode::Linked;
let channel: Arc<dyn Channel> = channel_impl.clone();
let subscriber = ChannelTurnStateSubscriber::with_config(
- Arc::new(HashMap::from([("telegram".to_string(), channel)])),
+ Arc::new(HashMap::from([("telegram".to_string(), Arc::clone(&channel))])),
Arc::new(config),
);
subscriber