mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-11 19:20:26 +01:00
test(memory): bound the jq parity spawn with a timeout (#3539)
test/spawnsync-timeout-tripwire.test.ts requires every sync spawn in the test trees to carry a timeout; the jq parity helper had none (remote pregate, tree 037200bc25).
Co-authored-by: Willy Morin <3635875+wmorin@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
8e11cb1970
commit
f883a32f17
1 file changed
+1
-1
@@ -186,7 +186,7 @@ describe('gstack-skill-start jq copy vs the TS rule (table-driven parity)', () =
|
||||
|
||||
function jqTrue(program: string, input: string): boolean {
|
||||
try {
|
||||
execFileSync('jq', ['-e', program], { input, stdio: ['pipe', 'ignore', 'ignore'] });
|
||||
execFileSync('jq', ['-e', program], { input, stdio: ['pipe', 'ignore', 'ignore'], timeout: 30_000 });
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user