fix(podman): time out setup image pulls · openclaw/openclaw@c2b1d20
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,6 +130,18 @@ describe("test-install-sh-docker", () => {
|
130 | 130 | expect(script).not.toContain('docker pull "$IMAGE_NAME"'); |
131 | 131 | }); |
132 | 132 | |
| 133 | +it("bounds Podman setup image pulls", () => { |
| 134 | +const script = readFileSync(PODMAN_SETUP_PATH, "utf8"); |
| 135 | + |
| 136 | +expect(script).toContain( |
| 137 | +'PODMAN_PULL_TIMEOUT="${OPENCLAW_PODMAN_SETUP_PULL_TIMEOUT:-600s}"', |
| 138 | +); |
| 139 | +expect(script).toContain("run_podman_pull()"); |
| 140 | +expect(script).toContain('timeout "$PODMAN_PULL_TIMEOUT" podman pull "$image"'); |
| 141 | +expect(script).toContain('run_podman_pull "$OPENCLAW_IMAGE"'); |
| 142 | +expect(script).not.toContain('podman pull "$OPENCLAW_IMAGE"'); |
| 143 | +}); |
| 144 | + |
133 | 145 | it("passes image-scoped pip packages through Docker and Podman setup", () => { |
134 | 146 | const dockerSetup = readFileSync(DOCKER_SETUP_PATH, "utf8"); |
135 | 147 | const podmanSetup = readFileSync(PODMAN_SETUP_PATH, "utf8"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。