mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-23 21:30:48 +02:00
test: spawn timeouts on absorbed-PR tests (v1.77 sync-spawn tripwire)
The absorbed community tests (#2748, #2676, #2714, #2720) were authored before the v1.77 tripwire required a timeout on every sync spawn in the test trees. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
47cb8a838a
commit
84c0eee9f2
@@ -49,7 +49,7 @@ function extractViaSkill(source: string, field: 'pid' | 'port', stateFile: strin
|
||||
// have to be reproduced here.
|
||||
const pipeline = line!.slice(line!.indexOf('grep -o'));
|
||||
const script = `cat ${JSON.stringify(stateFile)} | ${pipeline.replace(/\)$/, '')}`;
|
||||
return execFileSync('bash', ['-c', script], { encoding: 'utf-8' }).trim();
|
||||
return execFileSync('bash', ['-c', script], { encoding: 'utf-8', timeout: 30_000 }).trim();
|
||||
}
|
||||
|
||||
describe('/open-gstack-browser state-file extraction', () => {
|
||||
|
||||
Reference in New Issue
Block a user