Skip to content

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

fix(tests): install TinyHumans backend transport in e2e auth setup

Steven Enamakel495d2262a693
diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rs
index eb0389de23..6f435541e1 100644
--- a/tests/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/config_auth_app_state_connectivity_e2e.rs
@@ -124,6 +124,12 @@ pub fn env_lock() -> std::sync::MutexGuard<'static, ()> {
fn ensure_rpc_auth() {
AUTH_INIT.get_or_init(|| {
+ // The core carries no backend client; the `auth_*` remote paths below
+ // reach the mock backend through the `openhuman-tinyhumans` transport.
+ // Inline (not via `tests/support/`) because this file is also
+ // `#[path]`-included into `raw_coverage_all`.
+ openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())
+ .expect("install the TinyHumans backend transport");
std::env::set_var(CORE_TOKEN_ENV_VAR, TEST_RPC_TOKEN);
let token_dir = std::env::temp_dir().join("openhuman-worker-a-e2e-auth");
init_rpc_token(&token_dir).expect("init rpc auth token");
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 06aa0f5349..2759b4c022 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -1164,6 +1164,10 @@ enabled = false
fn ensure_test_rpc_auth() {
JSON_RPC_AUTH_INIT.get_or_init(|| {
+ // The core carries no backend client; billing / team / composio RPCs
+ // reach the mock backend through the `openhuman-tinyhumans` transport.
+ openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())
+ .expect("install the TinyHumans backend transport for json_rpc_e2e");
// SAFETY: set_var is inside get_or_init so it runs exactly once across
// all test threads. Rust 1.81+ requires unsafe for set_var in
// multi-threaded contexts; the OnceLock guard limits the mutation to a