mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 10:02:56 +08:00
clawdbot-d02.1.9.1.41.8.11: extend gateway-server test watchdog
This commit is contained in:
@@ -35,6 +35,7 @@ const UNIT_UI_VITEST_CONFIG = "test/vitest/vitest.unit-ui.config.ts";
|
||||
const TOOLING_DOCKER_VITEST_CONFIG = "test/vitest/vitest.tooling-docker.config.ts";
|
||||
const TOOLING_VITEST_CONFIG = "test/vitest/vitest.tooling.config.ts";
|
||||
const GATEWAY_CORE_VITEST_CONFIG = "test/vitest/vitest.gateway-core.config.ts";
|
||||
const GATEWAY_SERVER_VITEST_CONFIG = "test/vitest/vitest.gateway-server.config.ts";
|
||||
const GATEWAY_VITEST_CONFIG = "test/vitest/vitest.gateway.config.ts";
|
||||
const VITEST_CONFIG_NO_OUTPUT_TIMEOUT_MS = new Map([
|
||||
["test/vitest/vitest.e2e.config.ts", DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
|
||||
@@ -51,6 +52,7 @@ const VITEST_CONFIG_NO_OUTPUT_TIMEOUT_MS = new Map([
|
||||
],
|
||||
["test/vitest/vitest.infra.config.ts", DEFAULT_EXTRA_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
|
||||
[GATEWAY_CORE_VITEST_CONFIG, DEFAULT_EXTRA_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
|
||||
[GATEWAY_SERVER_VITEST_CONFIG, DEFAULT_EXTRA_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
|
||||
]);
|
||||
const TOOLING_EXCLUDED_TESTS = new Set([
|
||||
...boundaryTestFiles,
|
||||
|
||||
@@ -542,6 +542,7 @@ describe("scripts/run-vitest", () => {
|
||||
"--config=test/vitest/vitest.contracts-plugin.config.ts",
|
||||
"--config=test/vitest/vitest.infra.config.ts",
|
||||
"--config=test/vitest/vitest.gateway-core.config.ts",
|
||||
"--config=test/vitest/vitest.gateway-server.config.ts",
|
||||
]) {
|
||||
expect(resolveRunVitestSpawnEnv({ PATH: "/usr/bin" }, ["run", configArg])).toEqual({
|
||||
PATH: "/usr/bin",
|
||||
@@ -598,6 +599,13 @@ describe("scripts/run-vitest", () => {
|
||||
"/repo/test/vitest/vitest.gateway-core.config.ts",
|
||||
]),
|
||||
).toBe(DEFAULT_EXTRA_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS);
|
||||
expect(
|
||||
resolveDefaultVitestNoOutputTimeoutMs([
|
||||
"run",
|
||||
"--config",
|
||||
"/repo/test/vitest/vitest.gateway-server.config.ts",
|
||||
]),
|
||||
).toBe(DEFAULT_EXTRA_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS);
|
||||
});
|
||||
|
||||
it("does not default implicit interactive runs to the stall watchdog", () => {
|
||||
|
||||
@@ -4599,6 +4599,14 @@ describe("scripts/test-projects Vitest stall watchdog", () => {
|
||||
pnpmArgs: [],
|
||||
watchMode: false,
|
||||
},
|
||||
{
|
||||
config: "test/vitest/vitest.gateway-server.config.ts",
|
||||
env: { PATH: "/usr/bin" },
|
||||
includeFilePath: null,
|
||||
includePatterns: null,
|
||||
pnpmArgs: [],
|
||||
watchMode: false,
|
||||
},
|
||||
{
|
||||
config: "test/vitest/vitest.extension-feishu.config.ts",
|
||||
env: { PATH: "/usr/bin" },
|
||||
@@ -4614,7 +4622,8 @@ describe("scripts/test-projects Vitest stall watchdog", () => {
|
||||
expect(specs[0]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe("2400000");
|
||||
expect(specs[1]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe("2400000");
|
||||
expect(specs[2]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe("2400000");
|
||||
expect(specs[3]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe(
|
||||
expect(specs[3]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe("2400000");
|
||||
expect(specs[4]?.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBe(
|
||||
DEFAULT_TEST_PROJECTS_VITEST_NO_OUTPUT_TIMEOUT_MS,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user