

























@@ -4,7 +4,6 @@ import { chmodSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync
44import { tmpdir } from "node:os";
55import path from "node:path";
66import { setTimeout as delay } from "node:timers/promises";
7-import { MAX_TIMER_TIMEOUT_MS } from "@openclaw/normalization-core/number-coercion";
87import { describe, expect, it } from "vitest";
98import { DEFAULT_RESOURCE_LIMITS } from "../../scripts/lib/docker-e2e-plan.mjs";
109import {
@@ -484,8 +483,8 @@ postgres Created
484483 )}`,
485484env: process.env,
486485label: "oversized-command-timeout",
487-timeoutKillGraceMs: MAX_TIMER_TIMEOUT_MS + 1,
488-timeoutMs: MAX_TIMER_TIMEOUT_MS + 1,
486+timeoutKillGraceMs: Number.MAX_SAFE_INTEGER,
487+timeoutMs: Number.MAX_SAFE_INTEGER,
489488});
490489491490expect(result).toMatchObject({
@@ -502,7 +501,7 @@ postgres Created
502501 )}`,
503502env: process.env,
504503label: "oversized-no-output-timeout",
505-noOutputTimeoutMs: MAX_TIMER_TIMEOUT_MS + 1,
504+noOutputTimeoutMs: Number.MAX_SAFE_INTEGER,
506505timeoutMs: 5_000,
507506});
508507@@ -520,8 +519,8 @@ postgres Created
520519 )}`,
521520env: process.env,
522521label: "oversized-capture-timeout",
523-timeoutKillGraceMs: MAX_TIMER_TIMEOUT_MS + 1,
524-timeoutMs: MAX_TIMER_TIMEOUT_MS + 1,
522+ timeoutKillGraceMs: Number.MAX_SAFE_INTEGER,
523+ timeoutMs: Number.MAX_SAFE_INTEGER,
525524});
526525527526expect(result).toMatchObject({
@@ -609,7 +608,7 @@ setInterval(() => {}, 1000);
609608command: `exec ${JSON.stringify(process.execPath)} ${JSON.stringify(scriptPath)}`,
610609env: process.env,
611610label: "oversized-timeout-grace",
612-timeoutKillGraceMs: MAX_TIMER_TIMEOUT_MS + 1,
611+ timeoutKillGraceMs: Number.MAX_SAFE_INTEGER,
613612timeoutMs: 500,
614613});
615614此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。