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(subagent-host): reformat model resolution tests
Steven Enamakelf28f0dbba4fc
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex 7211a2a380..80ea69c28d 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -1,9 +1,9 @@use super::*;use crate::agent::subagent_host::run_subagent;use crate::agent::subagent_host::{- run_subagent_via_driver_tool, spawn_async_via_driver_tool_with_jobs, SubagentRunStatus,+ SubagentRunStatus, run_subagent_via_driver_tool, spawn_async_via_driver_tool_with_jobs,};-use tinyagents_harness::context::{current_run_depth, with_run_depth, RunDepth};+use tinyagents_harness::context::{RunDepth, current_run_depth, with_run_depth};struct BlockingSubagentCloseTool {started: tokio::sync::mpsc::Sender<()>,@@ -266,10 +266,11 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {assert_eq!(steered_payload["job_id"].as_str(), Some(job_id.as_str()));assert_eq!(steered_payload["status"], "message_queued");- assert!(port- .close("close-driver-session")- .await- .expect("Tiny close adapter cancels then closes the durable row"));+ assert!(+ port.close("close-driver-session")+ .await+ .expect("Tiny close adapter cancels then closes the durable row")+ );let cancellation = jobs.get(job_id.as_str()).expect("registered child remains visible while it unwinds");@@ -278,10 +279,11 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {cancellation.error.as_deref(),Some("cancellation requested; job will be cancelled when the child unwinds"));- assert!(port- .close("close-driver-session")- .await- .expect("repeated close is idempotent without re-cancelling"));+ assert!(+ port.close("close-driver-session")+ .await+ .expect("repeated close is idempotent without re-cancelling")+ );assert!(!parent_cancellation.is_cancelled(), "parent stays live");let tiny_store: std::sync::Arc<dyn TinySessionStore> = std::sync::Arc::new(port.clone());@@ -344,8 +346,8 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {provider.captured.lock().len());let settled = settled- .expect("shared Jobs wait observes cooperative cancellation settlement")- .expect("Tiny await dispatches successfully");+ .expect("shared Jobs wait observes cooperative cancellation settlement")+ .expect("Tiny await dispatches successfully");assert!(!settled.is_error, "settled Jobs wait must remain a result");assert_eq!(jobs.get(job_id.as_str()).unwrap().status,