mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:20:45 +00:00
ci: rebalance extension test shards
This commit is contained in:
@@ -476,10 +476,22 @@ describe("scripts/test-extension.mjs", () => {
|
||||
|
||||
const msTeamsShardIndex = shards.findIndex((shard) => shard.extensionIds.includes("msteams"));
|
||||
const feishuShardIndex = shards.findIndex((shard) => shard.extensionIds.includes("feishu"));
|
||||
const browserShardIndex = shards.findIndex((shard) => shard.extensionIds.includes("browser"));
|
||||
const slackShardIndex = shards.findIndex((shard) => shard.extensionIds.includes("slack"));
|
||||
const matrixShardIndex = shards.findIndex((shard) => shard.extensionIds.includes("matrix"));
|
||||
const mattermostShardIndex = shards.findIndex((shard) =>
|
||||
shard.extensionIds.includes("mattermost"),
|
||||
);
|
||||
|
||||
expect(msTeamsShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(feishuShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(msTeamsShardIndex).not.toBe(feishuShardIndex);
|
||||
expect(browserShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(slackShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(browserShardIndex).not.toBe(slackShardIndex);
|
||||
expect(matrixShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(mattermostShardIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(matrixShardIndex).not.toBe(mattermostShardIndex);
|
||||
});
|
||||
|
||||
it("runs extension batch config groups concurrently when requested", async () => {
|
||||
|
||||
Reference in New Issue
Block a user