The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(tests): add coverage for config loader and host profiles
Steven Enamakel8ab74f0df94d
diff --git a/crates/openhuman-core/src/config/ops/loader_current_tests.rs b/crates/openhuman-core/src/config/ops/loader_current_tests.rsindex bbdc88ba83..684cc8fd97 100644--- a/crates/openhuman-core/src/config/ops/loader_current_tests.rs+++ b/crates/openhuman-core/src/config/ops/loader_current_tests.rs@@ -22,12 +22,9 @@ async fn a_context_route_follows_every_load_of_the_context_config() {headers: Vec::new(),});- let loaded = CoreContext::scope(- context_with(config),- load_current_or_init(&DispatchCtx::process_default()),- )- .await- .expect("context config loads");+ let loaded = load_current_or_init(&DispatchCtx::new(context_with(config)))+ .await+ .expect("context config loads");let pinned = format!("{EPHEMERAL_ROUTE_SLUG}:ctx-model");assert_eq!(loaded.chat_provider.as_deref(), Some(pinned.as_str()));diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rsindex 87066881e5..e5864c16dd 100644--- a/crates/openhuman-core/src/profiles/host_tests.rs+++ b/crates/openhuman-core/src/profiles/host_tests.rs@@ -395,12 +395,10 @@ async fn the_operators_cron_limits_bind_every_profile_whatever_its_config_says().unwrap();let forced = host.provisioned_config(&id).await.unwrap();let opened = host.open(&id).await.unwrap();- let loaded = CoreContext::scope(Arc::clone(opened.context()), async {- crate::config::ops::load_current_or_init(&DispatchCtx::process_default())+ let loaded =+ crate::config::ops::load_current_or_init(&DispatchCtx::new(Arc::clone(opened.context()))).await- .unwrap()- })- .await;+ .unwrap();for config in [&forced, &opened.config, &loaded] {assert!(config.cron.agent_jobs_only);assert_eq!(config.cron.min_interval_secs, 900);