The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(storage): pass dispatch context to legacy import calls
Steven Enamakel82eb224256a4
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rsindex b4576ed8f1..2aa75e2e13 100644--- a/tests/storage_desktop_upgrade_e2e.rs+++ b/tests/storage_desktop_upgrade_e2e.rs@@ -412,12 +412,13 @@ async fn host_documents(backend: &dyn StorageBackend) -> usize {async fn import_modules(workspace: &Path) {use openhuman_core::modules;- modules::import_legacy_mcp(workspace).await;- modules::import_legacy_connectors(workspace).await;+ let ctx = openhuman_core::core::runtime::DispatchCtx::process_default();+ modules::import_legacy_mcp(&ctx, workspace).await;+ modules::import_legacy_connectors(&ctx, workspace).await;#[cfg(feature = "web3")]- assert!(modules::import_legacy_x402(workspace).await);- modules::import_legacy_tinybox(workspace).await;- modules::import_legacy_tinyjuice(&workspace.join("ccr"), Some(Duration::from_secs(3600))).await;+ 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;}async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(case: Case) {