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(tests): update test functions to use async and await
Steven Enamakel46e69020cb9c
diff --git a/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rsindex d22727e749..6ea513db4c 100644--- a/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs+++ b/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs@@ -1,5 +1,11 @@+use super::super::tier::{escalated_origin_for_nested_harness, escalated_origin_for_prompt};use super::*;+use crate::config::schema::tools::HttpRequestConfig;+use crate::security::GateDecision;+use serde_json::json;+use std::sync::Arc;use tinyagents_harness::tool::response_fields_from_schema;+use tinybox_bus::CommandClass;use tinytools::status::POLICY_BLOCKED_MARKER;/// The tier gate an `http_request` (Network-class) node calls: BLOCKED underdiff --git a/crates/openhuman-core/src/flows/caps_host/ops_tier_live_config_tests.rs b/crates/openhuman-core/src/flows/caps_host/ops_tier_live_config_tests.rsindex 2db0a191fd..79f7bc7b98 100644--- a/crates/openhuman-core/src/flows/caps_host/ops_tier_live_config_tests.rs+++ b/crates/openhuman-core/src/flows/caps_host/ops_tier_live_config_tests.rs@@ -1,4 +1,9 @@+use super::super::tier::tier_policy_from_config;use super::*;+use crate::security::GateDecision;+use serde_json::json;+use std::sync::Arc;+use tinybox_bus::CommandClass;fn live_tier_context(config: &Config) -> crate::core::runtime::DispatchCtx {let parent = crate::core::runtime::CoreContext::for_test(diff --git a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rsindex 900771faaa..56b1b3ffe5 100644--- a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs+++ b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs@@ -320,8 +320,8 @@ async fn claude_agent_flow_readiness_does_not_require_an_openhuman_session() {}}-#[test]-fn harness_readiness_uses_runtime_role_and_node_override() {+#[tokio::test]+async fn harness_readiness_uses_runtime_role_and_node_override() {let tmp = TempDir::new().unwrap();let mut config = test_config(&tmp);config.default_model = None;@@ -334,15 +334,15 @@ fn harness_readiness_uses_runtime_role_and_node_override() {"edges": [{"from_node": "t", "to_node": "a"}]}));let node = g.nodes.iter_mut().find(|n| n.id == "a").unwrap();- assert_eq!(agent_node_role(&config, node), "coding");+ assert_eq!(agent_node_role(&config, node).await, "coding");config.default_model = Some("hint:reasoning".into());- assert_eq!(agent_node_role(&config, node), "reasoning");+ assert_eq!(agent_node_role(&config, node).await, "reasoning");node.config["model"] = json!("chat-v1");- assert_eq!(agent_node_role(&config, node), "chat");+ assert_eq!(agent_node_role(&config, node).await, "chat");node.config["model"] = json!("hint:summarization");- assert_eq!(agent_node_role(&config, node), "summarization");+ assert_eq!(agent_node_role(&config, node).await, "summarization");node.config["model"] = json!("custom-model-id");- assert_eq!(agent_node_role(&config, node), "chat");+ assert_eq!(agent_node_role(&config, node).await, "chat");}#[tokio::test]diff --git a/crates/openhuman-core/src/flows/ops_inference_gate_tests.rs b/crates/openhuman-core/src/flows/ops_inference_gate_tests.rsindex 8ec79a80fd..568fcadb58 100644--- a/crates/openhuman-core/src/flows/ops_inference_gate_tests.rs+++ b/crates/openhuman-core/src/flows/ops_inference_gate_tests.rs@@ -181,8 +181,8 @@ async fn inference_gate_surfaces_construction_error() {// failure (no network, no test-provider-override seam) so a bug that skips a// role would show up as a falsely-empty `errors` list.-#[test]-fn agent_node_role_prefers_custom_registry_entry_model_pin_over_default() {+#[tokio::test]+async fn agent_node_role_prefers_custom_registry_entry_model_pin_over_default() {// Finding A/B: a node with no per-node `config.model` but a STATIC// (non-`=`) `agent_ref` naming a custom registry entry that itself pins a// model (e.g. `hint:reasoning`) must resolve to THAT role — the same@@ -219,7 +219,7 @@ fn agent_node_role_prefers_custom_registry_entry_model_pin_over_default() {}));let node = g.nodes.iter().find(|n| n.id == "a").expect("node 'a'");assert_eq!(- agent_node_role(&config, node),+ agent_node_role(&config, node).await,"reasoning","the custom registry entry's `hint:reasoning` pin must win over the default role");