Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(agent_runs): reformat paused driver cancellation assertion

Steven Enamakelb1bf917b972c
diff --git a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs
index 582dfe8415..ecc55ea66e 100644
--- a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs
+++ b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs
@@ -269,12 +269,15 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {
row.status,
tinyagents_orchestration::subagent::DurableSubagentStatus::Failed
);
- assert!(crate::agent::orchestration::completion_owners::driver_tasks_for_thread(
- &ctx,
- &workspace_dir,
- parent_thread.as_deref().expect("parent thread"),
- )
- .is_empty(), "settled paused child releases its active owner slot");
+ assert!(
+ crate::agent::orchestration::completion_owners::driver_tasks_for_thread(
+ &ctx,
+ &workspace_dir,
+ parent_thread.as_deref().expect("parent thread"),
+ )
+ .is_empty(),
+ "settled paused child releases its active owner slot"
+ );
let delivery = pending_for(&workspace_dir, parent_thread.as_deref().unwrap());
assert_eq!(delivery.len(), 1);
assert_eq!(delivery[0].status, CompletionStatus::Failed);