test(hooks): tolerate slower CI startup

This commit is contained in:
Dante committed 2026-09-14 17:31:41 +08:00
1 parent 8e641003ba
commit b336b01df6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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