Skip to content

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

chore(tests): remove unused helper functions and fix formatting

Steven Enamakeld4f0fcaaf0fc
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 3f202bf737..07464aa105 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -2289,7 +2289,6 @@ mod streaming_support {
usage.cache_read_tokens = 2;
ModelResponse::assistant(text).with_usage(usage)
}
-
}
// ─── Per-model-call wall-clock ceiling (#5766 / PR #5767) ────────────────────
diff --git a/tests/channels_default_channel_e2e.rs b/tests/channels_default_channel_e2e.rs
index 56b645dbd7..82607c8f1b 100644
--- a/tests/channels_default_channel_e2e.rs
+++ b/tests/channels_default_channel_e2e.rs
@@ -255,23 +255,6 @@ async fn rpc(base: &str, id: i64, method: &str, params: Value) -> Value {
.unwrap_or_else(|err| panic!("json for {method}: {err}"))
}
-fn ok<'a>(value: &'a Value, context: &str) -> &'a Value {
- if let Some(error) = value.get("error") {
- panic!("{context}: unexpected JSON-RPC error: {error}");
- }
- value
- .get("result")
- .unwrap_or_else(|| panic!("{context}: missing result: {value}"))
-}
-
-fn payload<'a>(value: &'a Value, context: &str) -> &'a Value {
- let outer = ok(value, context);
- outer
- .get("data")
- .or_else(|| outer.get("result"))
- .unwrap_or(outer)
-}
-
async fn set_default(harness: &Harness, id: i64, channel: &str) -> Value {
rpc(
&harness.rpc_base,
diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rs
index 362fdf1256..df1e07aef6 100644
--- a/tests/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/config_auth_app_state_connectivity_e2e.rs
@@ -18,17 +18,16 @@ use serde_json::{json, Value};
use tempfile::{tempdir, TempDir};
use openhuman_core::config::schema::{
- AuditConfig, CapabilityProviderConfig,
- CapabilityProviderTrustState, DashboardConfig,
+ AuditConfig, CapabilityProviderConfig, CapabilityProviderTrustState, DashboardConfig,
DingTalkConfig, DiscordConfig, EventStreamConfig, IrcConfig, LarkConfig, MatrixConfig,
- MemoryConfig, ModelHealthConfig, ProxyScope, QQConfig, ResourceLimitsConfig, SandboxConfig, SecurityConfig, SlackConfig,
- TelegramConfig, WebhookConfig, WhatsAppConfig,
+ MemoryConfig, ModelHealthConfig, ProxyScope, QQConfig, ResourceLimitsConfig, SandboxConfig,
+ SecurityConfig, SlackConfig, TelegramConfig, WebhookConfig, WhatsAppConfig,
};
use openhuman_core::config::settings_cli::{settings_section_json, ConfigSnapshotFields};
use openhuman_core::config::{
- clear_active_user, default_projects_dir, pre_login_user_dir,
- read_active_user_id, user_openhuman_dir, write_active_user_id, Config, DaemonConfig, DictationActivationMode, LlmBackend,
- ReflectionSource, UpdateRestartStrategy,
+ clear_active_user, default_projects_dir, pre_login_user_dir, read_active_user_id,
+ user_openhuman_dir, write_active_user_id, Config, DaemonConfig, DictationActivationMode,
+ LlmBackend, ReflectionSource, UpdateRestartStrategy,
};
use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};
use openhuman_core::core::events::DomainEvent;