test: harden flaky timeout and resolver specs

This commit is contained in:
Peter Steinberger
2026-02-26 23:47:23 +01:00
committed by Agent
parent c1428e8df9
commit c89836a251
2 changed files with 9 additions and 9 deletions

View File

@@ -127,7 +127,7 @@ describe("secrets audit", () => {
await fs.writeFile(
execScriptPath,
[
"#!/usr/bin/env node",
`#!${process.execPath}`,
"import fs from 'node:fs';",
"const req = JSON.parse(fs.readFileSync(0, 'utf8'));",
`fs.appendFileSync(${JSON.stringify(execLogPath)}, 'x\\n');`,
@@ -147,7 +147,8 @@ describe("secrets audit", () => {
source: "exec",
command: execScriptPath,
jsonOnly: true,
passEnv: ["PATH"],
timeoutMs: 20_000,
noOutputTimeoutMs: 10_000,
},
},
},