Skip to content

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

test(orchestration): wrap live parent context in arc for delegate graph test

Steven Enamakel2d7a92083cef
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index 3e5f08700b..286f456736 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -538,7 +538,10 @@ async fn delegate_graph_runs_every_stage_through_shared_driver_jobs() {
]));
let mut parent = parent_context(workspace.path(), provider.clone(), vec![]);
parent.session_id = "delegate-graph-jobs-e2e".into();
- let live = super::live_parent_run_context("delegate-graph-jobs-e2e", parent);
+ let live = Arc::new(super::live_parent_run_context(
+ "delegate-graph-jobs-e2e",
+ parent,
+ ));
let result = DelegateGraphTool::new()
.execute_with_live_parent_context(
json!({
@@ -548,7 +551,7 @@ async fn delegate_graph_runs_every_stage_through_shared_driver_jobs() {
}),
None,
live.data.child(),
- Some(Arc::new(live.clone())),
+ Some(Arc::clone(&live)),
)
.await
.expect("graph delegation returns a tool result");