@@ -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 ) } `,
485484 env : process . env ,
486485 label : "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 } ) ;
490489
491490 expect ( result ) . toMatchObject ( {
@@ -502,7 +501,7 @@ postgres Created
502501 ) } `,
503502 env : process . env ,
504503 label : "oversized-no-output-timeout" ,
505- noOutputTimeoutMs : MAX_TIMER_TIMEOUT_MS + 1 ,
504+ noOutputTimeoutMs : Number . MAX_SAFE_INTEGER ,
506505 timeoutMs : 5_000 ,
507506 } ) ;
508507
@@ -520,8 +519,8 @@ postgres Created
520519 ) } `,
521520 env : process . env ,
522521 label : "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 } ) ;
526525
527526 expect ( result ) . toMatchObject ( {
@@ -609,7 +608,7 @@ setInterval(() => {}, 1000);
609608 command : `exec ${ JSON . stringify ( process . execPath ) } ${ JSON . stringify ( scriptPath ) } ` ,
610609 env : process . env ,
611610 label : "oversized-timeout-grace" ,
612- timeoutKillGraceMs : MAX_TIMER_TIMEOUT_MS + 1 ,
611+ timeoutKillGraceMs : Number . MAX_SAFE_INTEGER ,
613612 timeoutMs : 500 ,
614613 } ) ;
615614
0 commit comments