Skip to content

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

test(storage): assert exact legacy mcp import summary

Steven Enamakela11501b4fd2e
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index 7ebb1a5c6a..17a85cab55 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -419,9 +419,10 @@ async fn import_modules(workspace: &Path) {
let mcp_import = modules::import_legacy_mcp(&ctx, workspace)
.await
.expect("import the legacy TinyMCP records");
- assert!(
- mcp_import.starts_with("Imported"),
- "TinyMCP import should consume both legacy stores: {mcp_import}"
+ assert_eq!(
+ mcp_import,
+ "Imported { servers: 2, secrets: 1, audit: 2 }",
+ "TinyMCP import should consume both legacy stores"
);
modules::import_legacy_connectors(&ctx, workspace).await;
#[cfg(feature = "web3")]