From f1da57a4a8382213591b4af06ff6eb06ddbbe645 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 2 May 2026 23:59:23 -0700 Subject: [PATCH] test(update): keep global install sidecar failure covered --- src/infra/update-runner.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infra/update-runner.test.ts b/src/infra/update-runner.test.ts index c06e5dff003..98116c35c0b 100644 --- a/src/infra/update-runner.test.ts +++ b/src/infra/update-runner.test.ts @@ -12,7 +12,7 @@ import { runGatewayUpdate } from "./update-runner.js"; type CommandResponse = { stdout?: string; stderr?: string; code?: number | null }; type CommandResult = { stdout: string; stderr: string; code: number | null }; -const WHATSAPP_LIGHT_RUNTIME_API = bundledDistPluginFile("whatsapp", "light-runtime-api.js"); +const MATRIX_HELPER_API = bundledDistPluginFile("matrix", "helper-api.js"); const fixtureRootTracker = createSuiteTempRootTracker({ prefix: "openclaw-update-" }); function toCommandResult(response?: CommandResponse): CommandResult { @@ -1557,7 +1557,7 @@ describe("runGatewayUpdate", () => { ); await writeBundledRuntimeSidecars(pkgRoot); await writePackageDistInventory(pkgRoot); - await fs.rm(path.join(pkgRoot, WHATSAPP_LIGHT_RUNTIME_API), { force: true }); + await fs.rm(path.join(pkgRoot, MATRIX_HELPER_API), { force: true }); }, }); @@ -1566,7 +1566,7 @@ describe("runGatewayUpdate", () => { expect(result.status).toBe("error"); expect(result.reason).toBe("global-install-failed"); expect(result.steps.at(-1)?.stderrTail).toContain( - `missing packaged dist file ${WHATSAPP_LIGHT_RUNTIME_API}`, + `missing packaged dist file ${MATRIX_HELPER_API}`, ); });