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
chore(tests): remove unused Composio mock helpers and unused OnceLock import
Steven Enamakel8d27f4e13fa0
diff --git a/tests/in_process/embeddings_rpc_e2e.rs b/tests/in_process/embeddings_rpc_e2e.rsindex b9ef882f2b..5070791c29 100644--- a/tests/in_process/embeddings_rpc_e2e.rs+++ b/tests/in_process/embeddings_rpc_e2e.rs@@ -12,7 +12,7 @@ use crate::env_guard::EnvVarGuard;use crate::rpc_auth::{ensure_rpc_auth, rpc_token};use std::net::SocketAddr;use std::path::Path;-use std::sync::{Arc, Mutex, OnceLock};+use std::sync::{Arc, Mutex};use std::time::Duration;use axum::extract::State;diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex 52127c2856..6451543212 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -11166,72 +11166,6 @@ async fn json_rpc_voice_server_settings_roundtrip_always_on_and_wake_word() {// ── Memory sources: active-connection filtering over JSON-RPC ────────────────-/// Mock Composio v3 `/connected_accounts`. Returns a single ACTIVE Gmail-/// connection (`conn_active_gmail`); any other connection_id is, by omission,-/// treated as inactive by the scan.-fn mock_composio_connected_accounts_router() -> Router {- async fn connected_accounts() -> Json<Value> {- Json(json!({- "items": [- {- "id": "conn_active_gmail",- "status": "ACTIVE",- "toolkit": "gmail",- "created_at": "2026-01-01T00:00:00Z"- }- ]- }))- }- Router::new().route("/connected_accounts", get(connected_accounts))-}--/// Write a minimal config that selects Composio **direct** mode with an inline-/// API key, so `scan_active_sync_targets` resolves a direct client that hits the-/// loopback mock pointed at by `OPENHUMAN_COMPOSIO_DIRECT_BASE_V3`.-fn write_composio_direct_config(openhuman_dir: &Path, api_origin: &str) {- let cfg = format!(- r#"api_url = "{api_origin}"-default_model = "e2e-mock-model"-default_temperature = 0.7-chat_onboarding_completed = true--[secrets]-encrypt = false--[composio]-mode = "direct"-api_key = "ck_e2e_test"-"#- );- fn write_config_file(config_dir: &Path, cfg: &str) {- std::fs::create_dir_all(config_dir).expect("mkdir openhuman");- std::fs::write(config_dir.join("config.toml"), cfg).expect("write config");- }- write_config_file(openhuman_dir, &cfg);- if openhuman_dir- .file_name()- .is_some_and(|name| name == std::ffi::OsStr::new(".openhuman"))- {- write_config_file(&openhuman_dir.join("users").join("local"), &cfg);- }- let _: openhuman_core::config::Config =- toml::from_str(&cfg).expect("config toml must match Config schema");-}--/// Mock Composio v3 `/connected_accounts` returning **two** distinct ACTIVE-/// Gmail connections — exercises multiple-account-per-toolkit support (#3443).-fn mock_composio_two_gmail_accounts_router() -> Router {- async fn connected_accounts() -> Json<Value> {- Json(json!({- "items": [- { "id": "conn_gmail_one", "status": "ACTIVE", "toolkit": "gmail", "created_at": "2026-01-01T00:00:00Z" },- { "id": "conn_gmail_two", "status": "ACTIVE", "toolkit": "gmail", "created_at": "2026-01-02T00:00:00Z" }- ]- }))- }- Router::new().route("/connected_accounts", get(connected_accounts))-}-// ─────────────────────────────────────────────────────────────────────────────// Workflow run execution engine (#3375 PR2)//diff --git a/tests/raw_coverage/agent_orchestration_e2e.rs b/tests/raw_coverage/agent_orchestration_e2e.rsindex 25355a1232..624a29c000 100644--- a/tests/raw_coverage/agent_orchestration_e2e.rs+++ b/tests/raw_coverage/agent_orchestration_e2e.rs@@ -16,7 +16,7 @@use crate::env_guard::EnvVarGuard;use std::net::SocketAddr;use std::path::Path;-use std::sync::{Arc, Mutex, OnceLock};+use std::sync::{Mutex, OnceLock};use std::time::Duration;use axum::http::header::AUTHORIZATION;