From 4c33f7d751433a24492c44bbe0634479e4c9a2e5 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 2 May 2026 16:52:04 -0700 Subject: [PATCH] test(e2e): keep matrix survivor installs internal --- scripts/e2e/lib/upgrade-survivor/assertions.mjs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/e2e/lib/upgrade-survivor/assertions.mjs b/scripts/e2e/lib/upgrade-survivor/assertions.mjs index 792bb92cbc6..e25e2dbb7e7 100644 --- a/scripts/e2e/lib/upgrade-survivor/assertions.mjs +++ b/scripts/e2e/lib/upgrade-survivor/assertions.mjs @@ -427,17 +427,9 @@ function assertConfiguredPluginInstalls() { const records = index.installRecords ?? {}; const matrix = records.matrix; const bundledMatrix = (index.plugins ?? []).find((plugin) => plugin?.pluginId === "matrix"); - if (!matrix) { - assert( - bundledMatrix, - "configured matrix plugin is neither present in the plugin index nor installed externally", - ); - assert(bundledMatrix.enabled !== false, "configured bundled matrix plugin is disabled"); - assertExternalPluginInstall(records, "discord", "@openclaw/discord"); - assert(!records.telegram, "internal telegram plugin should not be installed externally"); - return; - } - assertExternalPluginInstall(records, "matrix", "@openclaw/matrix"); + assert(!matrix, "internal matrix plugin should not be installed externally"); + assert(bundledMatrix, "configured bundled matrix plugin is missing from the plugin index"); + assert(bundledMatrix.enabled !== false, "configured bundled matrix plugin is disabled"); assertExternalPluginInstall(records, "discord", "@openclaw/discord"); assert(!records.telegram, "internal telegram plugin should not be installed externally"); }