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(agent_runs): reorder imports and reformat assertion
Steven Enamakel51a673445711
diff --git a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rsindex 2de461625d..b342554dbd 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs@@ -54,7 +54,7 @@ fn field(out: &Value, name: &str) -> Option<Value> {/// durable session alone, instead of rewriting it as "cancelled by user".#[tokio::test]async fn cancel_of_a_legacy_failed_run_reports_its_outcome_and_rewrites_nothing() {- use crate::agent::orchestration::subagent_sessions::{mark_failed, SubagentSessionStore};+ use crate::agent::orchestration::subagent_sessions::{SubagentSessionStore, mark_failed};use crate::core::runtime::{CoreContext, DispatchCtx, DomainSet};use std::sync::Arc;@@ -119,8 +119,8 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {forget_workspace_for_test, pending_for,};use crate::agent::orchestration::subagent_sessions::{- mark_finished, upsert_running, DriverTaskCancellation, DurableSubagentStatus,- SubagentSessionSelector, SubagentSessionStore, SubagentSessionUpsert,+ DriverTaskCancellation, DurableSubagentStatus, SubagentSessionSelector,+ SubagentSessionStore, SubagentSessionUpsert, mark_finished, upsert_running,};use tinyagents_orchestration::subagent::SubagentTaskKey;use tinyagents_tasks::CompletionStatus;@@ -186,14 +186,16 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {};forget_workspace_for_test(&workspace_dir);- assert!(settle_paused_driver_cancel(- &DispatchCtx::process_default(),- &observed,- observed.parent_epoch,- Some("user requested stop")- )- .await- .expect("paused cancellation settles"));+ assert!(+ settle_paused_driver_cancel(+ &DispatchCtx::process_default(),+ &observed,+ observed.parent_epoch,+ Some("user requested stop")+ )+ .await+ .expect("paused cancellation settles")+ );let row = store.load().unwrap().remove(0);assert_eq!(row.status, DurableSubagentStatus::Failed);