Skip to content

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

test(orchestration): assert no pending completions for paused cancel

Steven Enamakel3a6233f1e910
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
index 45eeacc267..a2f916217a 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
@@ -199,10 +199,7 @@ async fn cancelling_a_paused_driver_through_rpc_settles_once_with_its_reason() {
})
.expect("the paused child is registered in shared Jobs");
assert_eq!(paused_job.status, SubAgentJobStatus::AwaitingInput);
- let _ = crate::agent::orchestration::background_completions::mark_collected(
- workspace.path(),
- &task_id,
- );
+ assert!(pending_for(workspace.path(), "paused-cancel-rpc-thread").is_empty());
let controller = crate::agent_runs::subagent_control::all_registered_controllers()
.into_iter()