Skip to content

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

test(agent_harness_e2e): add debug sleep and output in cancellation test

Steven Enamakelf86898b2ffd6
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 0c57493f79..8b5d8a4a94 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -5415,6 +5415,7 @@ async fn cancelling_a_running_background_subagent_settles_it_inner() {
)
.await;
+ tokio::time::sleep(Duration::from_secs(5)).await; eprintln!("DBG {}", with_captured(|c| serde_json::to_string(&c.iter().map(|r| r.pointer("/body/messages").cloned()).collect::<Vec<_>>()).unwrap().chars().rev().take(3000).collect::<String>().chars().rev().collect::<String>()));
let spawned = wait_for_event(&mut events, "subagent_spawned", Duration::from_secs(120)).await;
let task_id = spawned
.get("skill_id")