Skip to content

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

test(inference): scope the auth-errors RPC test with the context's Arc

M3gA-Mind374fcffc51f2
diff --git a/crates/openhuman-core/src/inference/auth_error_registry_tests.rs b/crates/openhuman-core/src/inference/auth_error_registry_tests.rs
index df6069d9bc..2146527fb2 100644
--- a/crates/openhuman-core/src/inference/auth_error_registry_tests.rs
+++ b/crates/openhuman-core/src/inference/auth_error_registry_tests.rs
@@ -247,7 +247,7 @@ fn auth_errors_stay_in_the_scope_that_recorded_them() {
let workspace_b = tempfile::tempdir().expect("workspace B");
let context_a = CoreContext::for_test(DomainSet::full(), Some(workspace_a.path().into()));
let context_b = CoreContext::for_test(DomainSet::full(), Some(workspace_b.path().into()));
- let rpc_providers = |context: CoreContext| {
+ let rpc_providers = |context: std::sync::Arc<CoreContext>| {
CoreContext::scope(context, async {
let outcome = crate::inference::ops::inference_provider_auth_errors()
.await