Skip to content

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

test(profiles): use scoped dispatch ctx in lease renewal test

Steven Enamakel45e29136e395
diff --git a/crates/openhuman-core/src/profiles/lease_tests.rs b/crates/openhuman-core/src/profiles/lease_tests.rs
index 527ad11627..4a4263209e 100644
--- a/crates/openhuman-core/src/profiles/lease_tests.rs
+++ b/crates/openhuman-core/src/profiles/lease_tests.rs
@@ -168,7 +168,7 @@ async fn renewal_keeps_the_lease_and_a_lost_lease_fences_the_profile() {
CoreContext::scope(
Arc::clone(state.context()),
crate::web_chat::track_parallel_turn_for_test(
- &crate::core::runtime::DispatchCtx::ambient(),
+ &crate::core::runtime::DispatchCtx::new(Arc::clone(state.context())),
"t1",
"req-1",
turn.clone(),