Skip to content

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

chore: files changed crates/openhuman-core/src/mcp/module_client_tests.rs

Steven Enamakel832d8e234521
diff --git a/crates/openhuman-core/src/mcp/module_client_tests.rs b/crates/openhuman-core/src/mcp/module_client_tests.rs
index 1e5433381f..7f6bba7e5f 100644
--- a/crates/openhuman-core/src/mcp/module_client_tests.rs
+++ b/crates/openhuman-core/src/mcp/module_client_tests.rs
@@ -450,6 +450,7 @@ async fn agent_cleanup_closes_only_the_cached_agent_and_keeps_siblings_open() {
#[tokio::test]
async fn failed_agent_close_stays_retired_and_can_be_retried() {
let workspace = tempfile::tempdir().expect("workspace");
+ let scoped_dir = workspace.path().join("agents").join("agent");
let mut config = Config::default();
config.workspace_dir = workspace.path().to_path_buf();
config.modules.enabled = true;
@@ -655,7 +656,7 @@ async fn a_removed_context_waiting_for_the_client_cache_cannot_reopen_it() {
request.await.unwrap(),
Err(ModuleCallError::Unavailable)
));
- assert!(!clients.lock().unwrap().contains_key(workspace.path()));
+ assert!(!clients.lock().unwrap().contains_key(&scoped_dir));
}
#[tokio::test]