Skip to content

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

refactor(core): remove bus inbound thread id tests

Steven Enamakel1c60d79dde73
diff --git a/crates/openhuman-core/src/channels/bus_inbound_thread_id_tests_tests.rs b/crates/openhuman-core/src/channels/bus_inbound_thread_id_tests_tests.rs
deleted file mode 100644
index f71f9a2de1..0000000000
--- a/crates/openhuman-core/src/channels/bus_inbound_thread_id_tests_tests.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-use super::delivery::channel_message_body_with_idempotency;
-use serde_json::json;
-
-#[test]
-fn channel_message_body_adds_deterministic_idempotency_key() {
- let left = channel_message_body_with_idempotency(
- "telegram",
- json!({ "text": "hello", "threadId": "topic-1" }),
- );
- let right = channel_message_body_with_idempotency(
- "telegram",
- json!({ "threadId": "topic-1", "text": "hello" }),
- );
-
- assert_eq!(left["text"], "hello");
- assert_eq!(left["threadId"], "topic-1");
- assert_eq!(left["idempotencyKey"], right["idempotencyKey"]);
- assert!(left["idempotencyKey"]
- .as_str()
- .expect("idempotency key")
- .starts_with("legacy-send:telegram:"));
-}
-
-#[test]
-fn channel_message_body_preserves_caller_idempotency_key() {
- let body = channel_message_body_with_idempotency(
- "discord",
- json!({ "text": "hello", "idempotencyKey": "caller-key" }),
- );
-
- assert_eq!(body["idempotencyKey"], "caller-key");
-}