test: cover systemd update deferral on linux · openclaw/openclaw@32ab8f0
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -756,6 +756,7 @@ describe("maybeRepairGatewayServiceConfig", () => {
|
756 | 756 | }); |
757 | 757 | |
758 | 758 | it("defers systemd service config rewrites during non-interactive update repairs", async () => { |
| 759 | +mockProcessPlatform("linux"); |
759 | 760 | setupGatewayEntrypointRepairScenario({ |
760 | 761 | currentEntrypoint: "/Users/test/Library/npm/node_modules/openclaw/dist/entry.js", |
761 | 762 | installEntrypoint: "/Users/test/Library/npm/node_modules/openclaw/dist/index.js", |
@@ -866,6 +867,7 @@ describe("maybeRepairGatewayServiceConfig", () => {
|
866 | 867 | }); |
867 | 868 | |
868 | 869 | it("does not persist or stage embedded service tokens during systemd update repairs", async () => { |
| 870 | +mockProcessPlatform("linux"); |
869 | 871 | Object.defineProperty(process.stdin, "isTTY", { |
870 | 872 | value: false, |
871 | 873 | configurable: true, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。