mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:20:45 +00:00
test: speed up channel contract CI
This commit is contained in:
@@ -43,4 +43,15 @@ describe("scripts/lib/channel-contract-test-plan.mjs", () => {
|
||||
expect(actual).toEqual(listContractTests());
|
||||
expect(new Set(actual).size).toBe(actual.length);
|
||||
});
|
||||
|
||||
it("keeps registry-backed surface shards spread across checks", () => {
|
||||
for (const shard of createChannelContractTestShards().filter((entry) =>
|
||||
entry.checkName.includes("-registry-"),
|
||||
)) {
|
||||
const surfaceRegistryFiles = shard.includePatterns.filter((pattern) =>
|
||||
pattern.includes("/surfaces-only.registry-backed-shard-"),
|
||||
);
|
||||
expect(surfaceRegistryFiles.length).toBeLessThanOrEqual(1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user