Skip to content

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

fix(hosted): ensure SDK backend transport is installed in test support

Steven Enamakeldeb1cb7a09bf
diff --git a/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs b/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs
index afb1bcf03f..2a6b9d15a8 100644
--- a/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs
+++ b/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs
@@ -85,8 +85,7 @@ async fn get_stats_sends_trimmed_bearer() {
);
let base = spawn_mock(app).await;
let tmp = TempDir::new().unwrap();
- let mut config = test_config(&tmp);
- config.api_url = Some(base);
+ let config = config_with_backend(&tmp, base);
store_session_token(&config, " tok ");
let out = get_stats(&config).await.unwrap();
assert_eq!(out.value["auth"], json!("Bearer tok"));
diff --git a/crates/openhuman-tinyhumans/src/hosted/test_support.rs b/crates/openhuman-tinyhumans/src/hosted/test_support.rs
index 8842de72b1..21f592d932 100644
--- a/crates/openhuman-tinyhumans/src/hosted/test_support.rs
+++ b/crates/openhuman-tinyhumans/src/hosted/test_support.rs
@@ -6,6 +6,8 @@ use tempfile::TempDir;
/// A config rooted in `tmp` whose backend is `api_url`.
pub fn config(tmp: &TempDir, api_url: &str) -> Config {
+ crate::install(crate::InstallOptions::default().hosted_controllers(false))
+ .expect("install SDK backend transport for hosted mock tests");
Config {
workspace_dir: tmp.path().join("workspace"),
action_dir: tmp.path().join("workspace"),
diff --git a/scripts/ci/ignored-test-baseline.json b/scripts/ci/ignored-test-baseline.json
index d5368c15fe..6fefdd1b83 100644
--- a/scripts/ci/ignored-test-baseline.json
+++ b/scripts/ci/ignored-test-baseline.json
@@ -1,7 +1,7 @@
{
"openhuman-app": 5,
"openhuman-cli": 0,
- "openhuman-core": 90,
+ "openhuman-core": 89,
"openhuman-embed": 0,
"openhuman-rpc": 1,
"openhuman-tinyhumans": 0,