fix(e2e): route named container cleanup through helper · openclaw/openclaw@e295c86
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -503,6 +503,20 @@ test -f "$TMPDIR/docker-cmd-seen"
|
503 | 503 | } |
504 | 504 | }); |
505 | 505 | |
| 506 | +it("routes named Docker E2E container cleanup through the timeout-aware helper", () => { |
| 507 | +for (const path of readdirSync("scripts/e2e") |
| 508 | +.filter((entry) => entry.endsWith("-docker.sh")) |
| 509 | +.map((entry) => join("scripts/e2e", entry))) { |
| 510 | +const runner = readFileSync(path, "utf8"); |
| 511 | +if (!runner.includes('CONTAINER_NAME="')) { |
| 512 | +continue; |
| 513 | +} |
| 514 | + |
| 515 | +expect(runner, path).not.toMatch(/(^|\n)\s*docker rm -f "\$CONTAINER_NAME"/u); |
| 516 | +expect(runner, path).toContain('docker_e2e_docker_cmd rm -f "$CONTAINER_NAME"'); |
| 517 | +} |
| 518 | +}); |
| 519 | + |
506 | 520 | it("copies root lifecycle scripts before cleanup-smoke installs dependencies", () => { |
507 | 521 | const dockerfile = readFileSync(CLEANUP_SMOKE_DOCKERFILE_PATH, "utf8"); |
508 | 522 | const installIndex = dockerfile.indexOf("pnpm install --frozen-lockfile"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。