Skip to content

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

test(orchestration): remove unused job bindings from driver e2e test

Steven Enamakel5e78f19203c7
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
index 6506dc1b96..69753395ec 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
@@ -479,15 +479,12 @@ async fn deleting_parent_thread_cancels_driver_child_before_discarding_completio
"the driver's own scope query sees the job selected by the owner index"
);
let release_on_cancel = {
- let jobs = jobs.clone();
- let job_id = job.id.to_string();
let release = release.clone();
tokio::spawn(async move {
// Give thread deletion time to request cancellation and enter its
// settlement wait. The running snapshot stays `Running` until the
// provider unwinds, so the cancellation request itself is not
// observable through the public job snapshot.
- let _ = (jobs.get(&job_id), job_id);
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
release.notify_one();
})