mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(test): reject retired live shard
This commit is contained in:
@@ -277,8 +277,6 @@ export function selectLiveShardFiles(shard, files = collectAllLiveTestFiles()) {
|
||||
return files.filter(isExtensionMediaMusicLiveTest);
|
||||
case "native-live-extensions-media-video":
|
||||
return files.filter(isExtensionMediaVideoLiveTest);
|
||||
case "native-live-extensions-l-z":
|
||||
return files.filter((file) => isExtensionInRange(file, "l", "z"));
|
||||
default:
|
||||
throw new Error(
|
||||
`Unknown live test shard '${shard}'. Expected one of: ${LIVE_TEST_SHARDS.join(", ")}`,
|
||||
|
||||
@@ -123,6 +123,9 @@ describe("scripts/test-live-shard", () => {
|
||||
|
||||
it("rejects unknown shard names", () => {
|
||||
expect(() => selectLiveShardFiles("native-live-missing")).toThrow(/Unknown live test shard/u);
|
||||
expect(() => selectLiveShardFiles("native-live-extensions-l-z")).toThrow(
|
||||
/Unknown live test shard/u,
|
||||
);
|
||||
});
|
||||
|
||||
it("parses list mode and rejects unknown live shard options", () => {
|
||||
|
||||
Reference in New Issue
Block a user