mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 06:59:29 +00:00
fix(qa-lab): cap agent wait timeout payloads
This commit is contained in:
@@ -698,7 +698,7 @@ describe("qa suite runtime agent process helpers", () => {
|
||||
|
||||
expect(gatewayCall).toHaveBeenCalledWith(
|
||||
"agent.wait",
|
||||
{ runId: "run-oversized", timeoutMs: 9e15 },
|
||||
{ runId: "run-oversized", timeoutMs: MAX_TIMER_TIMEOUT_MS },
|
||||
{ timeoutMs: MAX_TIMER_TIMEOUT_MS },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -347,15 +347,16 @@ async function waitForAgentRun(
|
||||
runId: string,
|
||||
timeoutMs = 30_000,
|
||||
) {
|
||||
const waitTimeoutMs = resolveTimerTimeoutMs(timeoutMs, 30_000);
|
||||
try {
|
||||
return (await env.gateway.call(
|
||||
"agent.wait",
|
||||
{
|
||||
runId,
|
||||
timeoutMs,
|
||||
timeoutMs: waitTimeoutMs,
|
||||
},
|
||||
{
|
||||
timeoutMs: resolveQaGatewayTimeoutWithGraceMs(timeoutMs),
|
||||
timeoutMs: resolveQaGatewayTimeoutWithGraceMs(waitTimeoutMs),
|
||||
},
|
||||
)) as { status?: string; error?: string };
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user