mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
test(qa): loosen mac script timeout harness
This commit is contained in:
@@ -523,20 +523,23 @@ describe("qa test file scenario runner", () => {
|
||||
"utf8",
|
||||
);
|
||||
|
||||
const commandTimeoutMs = 3_000;
|
||||
const run = runQaTestFileScenarios({
|
||||
repoRoot,
|
||||
outputDir: path.join(tempRoot, "out"),
|
||||
providerMode: "mock-openai",
|
||||
primaryModel: "mock-openai/gpt-5.5",
|
||||
scenarios: [makeTestFileScenario("script", scriptPath)],
|
||||
commandTimeoutMs: 500,
|
||||
commandTimeoutMs,
|
||||
});
|
||||
descendantPid = await readPid(descendantPidPath, 2_000);
|
||||
descendantPid = await readPid(descendantPidPath, commandTimeoutMs - 250);
|
||||
|
||||
const result = await run;
|
||||
|
||||
expect(result.results[0]?.status).toBe("fail");
|
||||
expect(result.results[0]?.failureMessage).toMatch(/timed out after 500ms/u);
|
||||
expect(result.results[0]?.failureMessage).toMatch(
|
||||
new RegExp(`timed out after ${commandTimeoutMs}ms`, "u"),
|
||||
);
|
||||
await waitForDead(descendantPid, 2_000);
|
||||
} finally {
|
||||
if (descendantPid !== undefined && isProcessRunning(descendantPid)) {
|
||||
|
||||
Reference in New Issue
Block a user