



























@@ -405,13 +405,13 @@ const VITEST_NO_OUTPUT_TIMEOUT_ENV_KEY = "OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS";
405405const VITEST_NO_OUTPUT_RETRY_ENV_KEY = "OPENCLAW_VITEST_NO_OUTPUT_RETRY";
406406export const DEFAULT_TEST_PROJECTS_VITEST_NO_OUTPUT_TIMEOUT_MS = "300000";
407407const GATEWAY_SERVER_FULL_SUITE_TARGET_CHUNK_COUNT = 4;
408-const GATEWAY_SERVER_BACKED_HTTP_TEST_TARGETS = [
408+const GATEWAY_SERVER_BACKED_HTTP_TEST_TARGETS = new Set([
409409"src/gateway/embeddings-http.test.ts",
410410"src/gateway/models-http.test.ts",
411411"src/gateway/openai-http.test.ts",
412412"src/gateway/openresponses-http.test.ts",
413413"src/gateway/probe.auth.integration.test.ts",
414-];
414+]);
415415const GATEWAY_SERVER_EXCLUDED_TEST_TARGETS = new Set([
416416"src/gateway/gateway.test.ts",
417417"src/gateway/server.startup-matrix-migration.integration.test.ts",
@@ -490,7 +490,7 @@ function isGatewayServerFullSuiteTarget(relative) {
490490return false;
491491}
492492return (
493-GATEWAY_SERVER_BACKED_HTTP_TEST_TARGETS.includes(relative) ||
493+GATEWAY_SERVER_BACKED_HTTP_TEST_TARGETS.has(relative) ||
494494(relative.startsWith("src/gateway/") &&
495495path.posix.basename(relative).includes("server") &&
496496relative.endsWith(".test.ts"))
@@ -504,7 +504,7 @@ function resolveGatewayServerFullSuiteTargets(cwd) {
504504}
505505return listRepoFilesRecursive(gatewayDir, cwd)
506506.filter(isGatewayServerFullSuiteTarget)
507-.sort((a, b) => a.localeCompare(b));
507+.toSorted((a, b) => a.localeCompare(b));
508508}
509509510510function splitTargetChunks(targets, chunkCount) {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。