test(update): keep global install sidecar failure covered · openclaw/openclaw@f1da57a
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,7 +12,7 @@ import { runGatewayUpdate } from "./update-runner.js";
|
12 | 12 | |
13 | 13 | type CommandResponse = { stdout?: string; stderr?: string; code?: number | null }; |
14 | 14 | type CommandResult = { stdout: string; stderr: string; code: number | null }; |
15 | | -const WHATSAPP_LIGHT_RUNTIME_API = bundledDistPluginFile("whatsapp", "light-runtime-api.js"); |
| 15 | +const MATRIX_HELPER_API = bundledDistPluginFile("matrix", "helper-api.js"); |
16 | 16 | const fixtureRootTracker = createSuiteTempRootTracker({ prefix: "openclaw-update-" }); |
17 | 17 | |
18 | 18 | function toCommandResult(response?: CommandResponse): CommandResult { |
@@ -1557,7 +1557,7 @@ describe("runGatewayUpdate", () => {
|
1557 | 1557 | ); |
1558 | 1558 | await writeBundledRuntimeSidecars(pkgRoot); |
1559 | 1559 | await writePackageDistInventory(pkgRoot); |
1560 | | -await fs.rm(path.join(pkgRoot, WHATSAPP_LIGHT_RUNTIME_API), { force: true }); |
| 1560 | +await fs.rm(path.join(pkgRoot, MATRIX_HELPER_API), { force: true }); |
1561 | 1561 | }, |
1562 | 1562 | }); |
1563 | 1563 | |
@@ -1566,7 +1566,7 @@ describe("runGatewayUpdate", () => {
|
1566 | 1566 | expect(result.status).toBe("error"); |
1567 | 1567 | expect(result.reason).toBe("global-install-failed"); |
1568 | 1568 | expect(result.steps.at(-1)?.stderrTail).toContain( |
1569 | | -`missing packaged dist file ${WHATSAPP_LIGHT_RUNTIME_API}`, |
| 1569 | +`missing packaged dist file ${MATRIX_HELPER_API}`, |
1570 | 1570 | ); |
1571 | 1571 | }); |
1572 | 1572 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。