Skip to content

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

test(agent_harness): keep module path env var alive while splitting

Steven Enamakel4b98617d8c31
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index aefd9a2209..a0daf641c4 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -898,10 +898,9 @@ async fn managed_tinysearch_answer_reaches_followup_model_request_inner() {
&& std::env::var_os("OPENHUMAN_MODULE_SOURCE_TINYSEARCH").is_none(),
"the integration must use the staged release, not a source or linked override"
);
- let module_paths = std::env::var_os("OPENHUMAN_MODULE_PATH")
- .map(std::env::split_paths)
- .expect("the standard Rust test runner must stage TinySearch on OPENHUMAN_MODULE_PATH")
- .collect::<Vec<_>>();
+ let module_paths_env = std::env::var_os("OPENHUMAN_MODULE_PATH")
+ .expect("the standard Rust test runner must stage TinySearch on OPENHUMAN_MODULE_PATH");
+ let module_paths = std::env::split_paths(&module_paths_env).collect::<Vec<_>>();
let artifact = openhuman_core::modules::local_artifact("tinysearch")
.expect("the standard Rust test runner must stage the pinned TinySearch library");
let artifact_dir = artifact