mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-07 16:45:53 +00:00
test(hooks): tolerate slower CI startup
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user