mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:00:44 +00:00
fix(test): wait for Windows gateway recovery
This commit is contained in:
@@ -40,4 +40,15 @@ describe("Parallels smoke model selection", () => {
|
||||
expect(script).toMatch(/parallels-windows-smoke\.sh"[\s\S]*?--model "\$MODEL_ID"/);
|
||||
expect(script).toMatch(/parallels-linux-smoke\.sh"[\s\S]*?--model "\$MODEL_ID"/);
|
||||
});
|
||||
|
||||
it("keeps Windows gateway reachability on a real deadline with start recovery", () => {
|
||||
const script = readFileSync("scripts/e2e/parallels-windows-smoke.sh", "utf8");
|
||||
|
||||
expect(script).toContain(
|
||||
'GATEWAY_RECOVERY_AFTER_S="${OPENCLAW_PARALLELS_WINDOWS_GATEWAY_RECOVERY_AFTER_S:-180}"',
|
||||
);
|
||||
expect(script).toContain("deadline=$((SECONDS + TIMEOUT_GATEWAY_S))");
|
||||
expect(script).toContain("while (( SECONDS < deadline )); do");
|
||||
expect(script).toContain("run_gateway_daemon_action start");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user