Skip to content

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

test(mcp): isolate keyring workspace in registry e2e tests

Steven Enamakel6b30b7c08247
diff --git a/tests/mcp_registry_e2e.rs b/tests/mcp_registry_e2e.rs
index 3d99b2d967..f55b8739e4 100644
--- a/tests/mcp_registry_e2e.rs
+++ b/tests/mcp_registry_e2e.rs
@@ -7,10 +7,14 @@
#![cfg(feature = "mcp")]
+#[path = "support/env_guard.rs"]
+mod env_guard;
+
use openhuman_core::config::{schema::ModuleOverride, Config};
use serde_json::{json, Map, Value};
fn fresh_workspace_config() -> (tempfile::TempDir, Config) {
+ env_guard::init_keyring_workspace();
let tmp = tempfile::tempdir().expect("tempdir");
let artifact = openhuman_core::modules::local_artifact("tinymcp")
.expect("build tinymcp with scripts/modules/build.mjs and set OPENHUMAN_MODULE_SOURCE_DIR");