Skip to content

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

fix(session): correct test support module to use proper import paths

Steven Enamakel2d978ddcfd1e
diff --git a/crates/openhuman-session/src/test_support.rs b/crates/openhuman-session/src/test_support.rs
index 4268baf4d3..dfd3a30bb8 100644
--- a/crates/openhuman-session/src/test_support.rs
+++ b/crates/openhuman-session/src/test_support.rs
@@ -270,6 +270,9 @@ impl CoreLink for FakeCore {
if let Some(message) = self.fail_with.lock().unwrap().clone() {
return Err(message);
}
+ if self.fail_method.lock().unwrap().as_deref() == Some(method) {
+ return Err(format!("{method} failed (test-injected)"));
+ }
match method {
link::CONFIG_RESOLVE_API_URL => {
Ok(json!({ "api_url": self.api_url.lock().unwrap().clone() }))