test: tighten docker e2e lane assertion · openclaw/openclaw@d7f4c8b
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,15 @@ function planFor(
|
30 | 30 | }).plan; |
31 | 31 | } |
32 | 32 | |
| 33 | +function requireFirstLane(plan: ReturnType<typeof planFor>) { |
| 34 | +const [lane] = plan.lanes; |
| 35 | +expect(lane).toBeDefined(); |
| 36 | +if (!lane) { |
| 37 | +throw new Error("Expected at least one Docker E2E lane"); |
| 38 | +} |
| 39 | +return lane; |
| 40 | +} |
| 41 | + |
33 | 42 | describe("scripts/lib/docker-e2e-plan", () => { |
34 | 43 | it("plans the full release path against package-backed e2e images", () => { |
35 | 44 | const plan = planFor({ |
@@ -342,7 +351,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
342 | 351 | ), |
343 | 352 | }), |
344 | 353 | ]); |
345 | | -expect(plan.lanes[0]?.command).toContain( |
| 354 | +expect(requireFirstLane(plan).command).toContain( |
346 | 355 | 'OPENCLAW_UPGRADE_SURVIVOR_ARTIFACT_DIR="$PWD/.artifacts/upgrade-survivor/published-upgrade-survivor-2026.4.29"', |
347 | 356 | ); |
348 | 357 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。