Skip to content

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

test: pass dispatch context to gated-services e2e calls

M3gA-Mindfa23468ad74a
diff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
index 0911d49675..0e04f24c7c 100644
--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
@@ -1701,8 +1701,16 @@ async fn credentials_public_ops_cover_service_and_missing_session_error_paths()
std::fs::create_dir_all(config.config_path.parent().expect("config parent"))
.expect("create config parent");
- openhuman_core::security::credentials::start_credential_gated_services(&config).await;
- openhuman_core::security::credentials::stop_credential_gated_services(&config).await;
+ openhuman_core::security::credentials::start_credential_gated_services(
+ &DispatchCtx::host_default(),
+ &config,
+ )
+ .await;
+ openhuman_core::security::credentials::stop_credential_gated_services(
+ &DispatchCtx::host_default(),
+ &config,
+ )
+ .await;
// The account-bound link-token and OAuth ops live in `openhuman-tinyhumans`
// (`hosted::{channel_link, oauth}`); validation still runs first, and a