Skip to content

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

test: update e2e tests for dispatch ctx and formatting

Steven Enamakel183fcc3a60fc
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..aae7679050 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,14 @@ 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(
+ &openhuman_core::core::runtime::DispatchCtx::process_default(),
+ &config,
+ ).await;
+ openhuman_core::security::credentials::stop_credential_gated_services(
+ &openhuman_core::core::runtime::DispatchCtx::process_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
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index 2aa75e2e13..dcf3745301 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -418,7 +418,12 @@ async fn import_modules(workspace: &Path) {
#[cfg(feature = "web3")]
assert!(modules::import_legacy_x402(&ctx, workspace).await);
modules::import_legacy_tinybox(&ctx, workspace).await;
- modules::import_legacy_tinyjuice(&ctx, &workspace.join("ccr"), Some(Duration::from_secs(3600))).await;
+ modules::import_legacy_tinyjuice(
+ &ctx,
+ &workspace.join("ccr"),
+ Some(Duration::from_secs(3600)),
+ )
+ .await;
}
async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(case: Case) {