From b336b01df6daf2bb13119f6f2b4c08eefa5fa17a Mon Sep 17 00:00:00 2001 From: Dante Date: Mon, 14 Sep 2026 17:31:41 +0800 Subject: [PATCH] test(hooks): tolerate slower CI startup --- scripts/hooks/plugin-hook-bootstrap.js | 2 +- tests/hooks/stop-hooks-stdout.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/hooks/plugin-hook-bootstrap.js b/scripts/hooks/plugin-hook-bootstrap.js index 8d573ffed..18ea385cb 100644 --- a/scripts/hooks/plugin-hook-bootstrap.js +++ b/scripts/hooks/plugin-hook-bootstrap.js @@ -6,7 +6,7 @@ const path = require('path'); const { spawnSync } = require('child_process'); const { ensureAgentDataHomeEnv } = require('../lib/agent-data-home'); -const SHELL_PROBE_TIMEOUT_MS = 2000; +const SHELL_PROBE_TIMEOUT_MS = 5000; function readStdinRaw() { try { diff --git a/tests/hooks/stop-hooks-stdout.test.js b/tests/hooks/stop-hooks-stdout.test.js index 5d3efdf86..601c83b54 100644 --- a/tests/hooks/stop-hooks-stdout.test.js +++ b/tests/hooks/stop-hooks-stdout.test.js @@ -29,7 +29,7 @@ const hooksConfig = readHooksConfig(path.join(repoRoot, 'hooks', 'hooks.json')); const MAX_STDIN = 1024 * 1024; const SUBPROCESS_TIMEOUT_MS = process.platform === 'darwin' && process.env.CI === 'true' - ? 120_000 + ? 180_000 : 60_000; const workDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-stop-stdout-')); // non-git cwd