Skip to content

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

chore(tests): remove duplicated memory seam helper

Steven Enamakel85e1d4540a1d
diff --git a/tests/in_process/memory_tree_health_e2e.rs b/tests/in_process/memory_tree_health_e2e.rs
index df01187dcc..cb55bf218e 100644
--- a/tests/in_process/memory_tree_health_e2e.rs
+++ b/tests/in_process/memory_tree_health_e2e.rs
@@ -24,7 +24,7 @@
//! cross-method invariant that IS reachable and says so in a comment, rather
//! than asserting `0 == 0` and calling it coverage.
-use crate::memory_rpc::{ok, serve, write_config};
+use crate::memory_rpc::{ensure_memory_seams, ok, serve, write_config};
use crate::env_guard::EnvVarGuard;
use crate::env_guard::env_lock;
use crate::rpc_auth::rpc_token;
@@ -37,28 +37,8 @@ use serde_json::{json, Value};
use tempfile::tempdir;
-static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();
static TEST_HOME: OnceLock<tempfile::TempDir> = OnceLock::new();
-/// The transport-only JSON-RPC router does not create a core runtime context,
-/// so memory-backed routes need their host seams installed explicitly.
-fn ensure_memory_seams() {
- MEMORY_SEAMS_INIT.get_or_init(|| {
- std::thread::Builder::new()
- .name("memory-tree-health-e2e-seams".to_string())
- .stack_size(8 * 1024 * 1024)
- .spawn(|| {
- #[cfg(feature = "modules")]
- openhuman_core::modules::memory::set_modules_policy(Arc::new(
- openhuman_core::config::Config::default(),
- ));
- })
- .expect("spawn memory tree health seam installer")
- .join()
- .expect("memory tree health seam installer panicked");
- });
-}
-
fn test_home() -> &'static Path {
TEST_HOME
.get_or_init(|| tempdir().expect("memory tree health tempdir"))