test: clarify ci shard plan assertions · openclaw/openclaw@350889d
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -351,11 +351,16 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
351 | 351 | |
352 | 352 | it("keeps expensive plugin shards release-only when normal CI asks for the cheaper plan", () => { |
353 | 353 | const shards = createNodeTestShards({ includeReleaseOnlyPluginShards: false }); |
| 354 | +const shardNames = shards.map((shard) => shard.shardName); |
354 | 355 | |
355 | | -expect(shards.some((shard) => shard.shardName === "agentic-plugins")).toBe(false); |
356 | | -expect(shards.some((shard) => shard.shardName === "agentic-gateway-core")).toBe(true); |
357 | | -expect(shards.some((shard) => shard.shardName === "agentic-gateway-methods")).toBe(true); |
358 | | -expect(shards.some((shard) => shard.shardName === "agentic-plugin-sdk")).toBe(true); |
| 356 | +expect(shardNames).not.toContain("agentic-plugins"); |
| 357 | +expect(shardNames).toEqual( |
| 358 | +expect.arrayContaining([ |
| 359 | +"agentic-gateway-core", |
| 360 | +"agentic-gateway-methods", |
| 361 | +"agentic-plugin-sdk", |
| 362 | +]), |
| 363 | +); |
359 | 364 | }); |
360 | 365 | |
361 | 366 | it("splits auto-reply into balanced core/top-level and reply subtree shards", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。