mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
test(parallels): budget Windows agent retry
This commit is contained in:
@@ -397,7 +397,7 @@ class WindowsSmoke {
|
||||
this.status.freshGateway = "pass";
|
||||
await this.phase(
|
||||
"fresh.first-agent-turn",
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900),
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500),
|
||||
() => this.verifyTurn(),
|
||||
);
|
||||
this.status.freshAgent = "pass";
|
||||
@@ -453,7 +453,7 @@ class WindowsSmoke {
|
||||
this.status.upgradeGateway = "pass";
|
||||
await this.phase(
|
||||
"upgrade.first-agent-turn",
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900),
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500),
|
||||
() => this.verifyTurn(),
|
||||
);
|
||||
this.status.upgradeAgent = "pass";
|
||||
@@ -936,7 +936,7 @@ for ($attempt = 1; $attempt -le 2; $attempt++) {
|
||||
}
|
||||
}
|
||||
if (-not $agentOk) { throw 'openclaw agent finished without OK response' }`,
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900) * 1000,
|
||||
Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500) * 1000,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -459,6 +459,7 @@ console.log(JSON.stringify(result));
|
||||
|
||||
expect(script).toContain('guestPowerShellBackground(\n "agent-turn"');
|
||||
expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S");
|
||||
expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500");
|
||||
expect(script).toContain("windowsModelProviderTimeoutScript(this.auth.modelId)");
|
||||
expect(script).toContain("finalAssistant(Raw|Visible)Text");
|
||||
expect(script).toContain("parallels-windows-smoke-retry-$attempt");
|
||||
|
||||
Reference in New Issue
Block a user