The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(channels): drop unused test-only bus helpers
Steven Enamakel0fac3f8ad6c3
diff --git a/crates/openhuman-core/src/channels/bus.rs b/crates/openhuman-core/src/channels/bus.rsindex 183972cd02..d9b3067c89 100644--- a/crates/openhuman-core/src/channels/bus.rs+++ b/crates/openhuman-core/src/channels/bus.rs@@ -18,6 +18,3 @@ mod inbound_thread_id_tests;#[path = "bus_tests.rs"]mod tests;-#[cfg(test)]-#[path = "bus_test_support_tests.rs"]-pub mod test_support;diff --git a/crates/openhuman-core/src/channels/bus/delivery.rs b/crates/openhuman-core/src/channels/bus/delivery.rsindex da1798d008..eb4f02ed43 100644--- a/crates/openhuman-core/src/channels/bus/delivery.rs+++ b/crates/openhuman-core/src/channels/bus/delivery.rs@@ -5,8 +5,6 @@ use crate::security::credentials::session_support::{get_session_token, is_local_session_token, BackendCredential,};use serde_json::json;-#[cfg(test)]-use serde_json::Value;use tinybus::module::ModuleCallError;use tinychannels_bus::module_progressive::{ChannelOutputEvent, ProgressiveCommand, ProgressiveEvent, ProgressiveResult,@@ -401,13 +399,6 @@ impl ModuleProgressiveReply {}}-// Compatibility fixtures exercise the owning library only in test builds.-#[cfg(test)]-pub(super) fn channel_message_body_with_idempotency(channel: &str, body: Value) -> Value {- let intent = tinychannels::outbound_intent_from_legacy_message(channel, body);- tinychannels::legacy_message_value_from_outbound_intent(&intent)-}-#[cfg(test)]#[path = "delivery_tests.rs"]mod tests;diff --git a/crates/openhuman-core/src/channels/bus/delivery_tests.rs b/crates/openhuman-core/src/channels/bus/delivery_tests.rsindex 9e8d49c9fa..86dc37a54f 100644--- a/crates/openhuman-core/src/channels/bus/delivery_tests.rs+++ b/crates/openhuman-core/src/channels/bus/delivery_tests.rs@@ -1,16 +1,6 @@use super::*;use crate::config::test_env::EnvVarGuard;-#[test]-fn outbound_body_has_stable_idempotency_key() {- let body = json!({ "text": "hello" });- let first = channel_message_body_with_idempotency("telegram", body.clone());- let second = channel_message_body_with_idempotency("telegram", body);-- assert_eq!(first, second);- assert!(first.get("idempotencyKey").is_some());-}-#[tokio::test]async fn transport_captures_no_local_or_missing_hosted_credential() {let _env_lock = crate::config::TEST_ENV_LOCK.lock().await;diff --git a/crates/openhuman-core/src/channels/bus_test_support_tests.rs b/crates/openhuman-core/src/channels/bus_test_support_tests.rsdeleted file mode 100644index 310d38c90d..0000000000--- a/crates/openhuman-core/src/channels/bus_test_support_tests.rs+++ /dev/null@@ -1,35 +0,0 @@-//! Debug-build seams for raw integration coverage of channel inbound helpers.--use tinychannels::delivery::progressive::{- extract_message_id, latest_thinking_snippet, StreamingState,-};-use tinychannels_runtime::channel::derive_inbound_thread_id;--pub fn extract_message_id_for_test(resp: &serde_json::Value) -> Option<String> {- extract_message_id(resp)-}--pub fn compose_draft_for_test(content: &str) -> String {- let state = StreamingState {- content: content.to_string(),- ..Default::default()- };- state.compose_draft()-}--pub fn latest_thinking_snippet_for_test(thinking: &str) -> Option<String> {- let state = StreamingState {- thinking_accumulator: thinking.to_string(),- ..Default::default()- };- latest_thinking_snippet(&state)-}--pub fn derive_inbound_thread_id_for_test(- channel: &str,- sender: Option<&str>,- reply_target: Option<&str>,- thread_ts: Option<&str>,-) -> String {- derive_inbound_thread_id(channel, sender, reply_target, thread_ts)-}