Skip to content

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

test(channels): remove unused helper functions from default channel e2e tests

Steven Enamakel81e635a3a1e1
diff --git a/tests/channels_default_channel_e2e.rs b/tests/channels_default_channel_e2e.rs
index 24e46f6ee6..9362f5aa4b 100644
--- a/tests/channels_default_channel_e2e.rs
+++ b/tests/channels_default_channel_e2e.rs
@@ -271,14 +271,6 @@ fn payload<'a>(value: &'a Value, context: &str) -> &'a Value {
.unwrap_or(outer)
}
-fn active_channel(value: &Value, context: &str) -> String {
- payload(value, context)
- .get("active_channel")
- .and_then(Value::as_str)
- .unwrap_or_else(|| panic!("{context}: payload has no string `active_channel`: {value}"))
- .to_string()
-}
-
async fn set_default(harness: &Harness, id: i64, channel: &str) -> Value {
rpc(
&harness.rpc_base,
@@ -289,16 +281,6 @@ async fn set_default(harness: &Harness, id: i64, channel: &str) -> Value {
.await
}
-async fn get_default(harness: &Harness, id: i64) -> Value {
- rpc(
- &harness.rpc_base,
- id,
- "openhuman.channels_get_default",
- json!({}),
- )
- .await
-}
-
// ── Tests ────────────────────────────────────────────────────────────
/// The switch must survive as a *persisted* choice, not just an in-memory one.