Skip to content

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

test(memory): update prefetch test to use ambient dispatch context

Steven Enamakel0e3791c7f2c1
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
index d3127bfc54..71ed7ce97f 100644
--- a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
@@ -376,7 +376,7 @@ async fn queued_work_keeps_the_callers_core_context() {
enqueue(
cache.clone(),
key.clone(),
- Box::pin(crate::core::runtime::spawn::scoped(async move {
+ Box::pin(crate::core::runtime::DispatchCtx::ambient().enter(async move {
assert!(Arc::ptr_eq(
&crate::core::runtime::CoreContext::scoped().unwrap(),
&expected