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
test(core): update source and agent tests
Steven Enamakelb4b7a9d87e09
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rsindex fd3f47ca9d..c783f8cd87 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs@@ -208,18 +208,6 @@ async fn saas_dispatch_exposes_only_the_callers_detached_worker_controls() {),Some(true));- assert!(crate::core::all::schema_for_rpc_method("openhuman.config_get_config").is_none());- assert!(- crate::core::invoke::invoke_method(- DispatchCtx::process_default(),- crate::core::invoke::default_state(),- &method,- serde_json::json!({}),- )- .await- .is_err(),- "unreviewed Agent methods remain absent"- );}).await;CoreContext::scope(pair.alice.clone(), async {diff --git a/crates/openhuman-core/src/tools/sources_tests.rs b/crates/openhuman-core/src/tools/sources_tests.rsindex 5cf1997c9c..66cf32f561 100644--- a/crates/openhuman-core/src/tools/sources_tests.rs+++ b/crates/openhuman-core/src/tools/sources_tests.rs@@ -89,19 +89,18 @@ fn registered_sources_append_in_registration_order_after_built_ins() {}#[test]-fn a_source_receives_the_catalogue_context() {+fn a_source_receives_the_catalogue_action_directory() {let tmp = TempDir::new().unwrap();let seen = Arc::new(std::sync::Mutex::new(None));let sink = Arc::clone(&seen);register_tool_source("test::ctx", move |ctx| {- *sink.lock().unwrap() = Some((ctx.action_dir.to_path_buf(), ctx.agents.len()));+ *sink.lock().unwrap() = Some(ctx.action_dir.to_path_buf());Vec::new()});let _ = assemble(&tmp);unregister_tool_source("test::ctx");- let (action_dir, agents) = seen.lock().unwrap().clone().expect("source ran");+ let action_dir = seen.lock().unwrap().clone().expect("source ran");assert_eq!(action_dir, tmp.path());- assert_eq!(agents, 0);}#[test]