Skip to content

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

test(session_host): update test configurations

Steven Enamakel8395792050bb
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_model_source_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_model_source_tests.rs
index f721ce9a3e..9bdcb4faca 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_model_source_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_model_source_tests.rs
@@ -4,7 +4,12 @@ use std::sync::Arc;
#[test]
fn builder_requires_a_model_when_no_host_policy_is_installed() {
let tmp = tempfile::TempDir::new().unwrap();
- let config = test_config(&tmp);
+ let config = crate::config::Config {
+ workspace_dir: tmp.path().join("workspace"),
+ action_dir: tmp.path().join("workspace"),
+ config_path: tmp.path().join("config.toml"),
+ ..crate::config::Config::default()
+ };
assert!(config.default_model.is_none());
let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index 9e106a0013..8c03808f13 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -476,6 +476,7 @@ fn availability_notes_are_status_not_instructions() {
/// thread would write into the same file.
#[test]
fn a_subagent_thread_binding_claims_no_session_identity() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = tempfile::tempdir().unwrap();
let config = crate::config::Config {
workspace_dir: tmp.path().join("workspace"),