mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 19:12:22 +00:00
test: lengthen ARM contracts shard watchdog
This commit is contained in:
@@ -28,6 +28,7 @@ const TOOLING_VITEST_CONFIG = "test/vitest/vitest.tooling.config.ts";
|
||||
const LONG_RUNNING_VITEST_CONFIGS = new Set([
|
||||
"test/vitest/vitest.e2e.config.ts",
|
||||
"test/vitest/vitest.ui-e2e.config.ts",
|
||||
"test/vitest/vitest.full-core-contracts.config.ts",
|
||||
]);
|
||||
const TOOLING_EXCLUDED_TESTS = new Set([
|
||||
...boundaryTestFiles,
|
||||
|
||||
@@ -423,30 +423,20 @@ describe("scripts/run-vitest", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("uses a longer default stall watchdog for broad e2e configs", () => {
|
||||
it("uses a longer default stall watchdog for broad e2e and project shard configs", () => {
|
||||
const timeout = String(DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS);
|
||||
|
||||
expect(
|
||||
resolveRunVitestSpawnEnv({ PATH: "/usr/bin" }, [
|
||||
"run",
|
||||
"--config",
|
||||
"test/vitest/vitest.e2e.config.ts",
|
||||
]),
|
||||
).toEqual({
|
||||
PATH: "/usr/bin",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_HEARTBEAT_MS: "60000",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: timeout,
|
||||
});
|
||||
expect(
|
||||
resolveRunVitestSpawnEnv({ PATH: "/usr/bin" }, [
|
||||
"run",
|
||||
"--config=./test/vitest/vitest.ui-e2e.config.ts",
|
||||
]),
|
||||
).toEqual({
|
||||
PATH: "/usr/bin",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_HEARTBEAT_MS: "60000",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: timeout,
|
||||
});
|
||||
for (const configArg of [
|
||||
"--config=test/vitest/vitest.e2e.config.ts",
|
||||
"--config=./test/vitest/vitest.ui-e2e.config.ts",
|
||||
"--config=test/vitest/vitest.full-core-contracts.config.ts",
|
||||
]) {
|
||||
expect(resolveRunVitestSpawnEnv({ PATH: "/usr/bin" }, ["run", configArg])).toEqual({
|
||||
PATH: "/usr/bin",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_HEARTBEAT_MS: "60000",
|
||||
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: timeout,
|
||||
});
|
||||
}
|
||||
expect(
|
||||
resolveDefaultVitestNoOutputTimeoutMs([
|
||||
"run",
|
||||
@@ -454,6 +444,13 @@ describe("scripts/run-vitest", () => {
|
||||
"/repo/test/vitest/vitest.e2e.config.ts",
|
||||
]),
|
||||
).toBe(DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS);
|
||||
expect(
|
||||
resolveDefaultVitestNoOutputTimeoutMs([
|
||||
"run",
|
||||
"--config",
|
||||
"/repo/test/vitest/vitest.full-core-contracts.config.ts",
|
||||
]),
|
||||
).toBe(DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS);
|
||||
});
|
||||
|
||||
it("does not default implicit interactive runs to the stall watchdog", () => {
|
||||
|
||||
Reference in New Issue
Block a user