test: clear Windows Parallels smoke sessions

This commit is contained in:
Peter Steinberger
2026-05-01 11:40:26 +01:00
parent fe022e409d
commit 39ab11425f
3 changed files with 5 additions and 0 deletions

View File

@@ -157,6 +157,8 @@ $config.models.providers | Add-Member -Force -MemberType NoteProperty -Name open
timeoutSeconds = 300
})
$config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8
$sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-npm-update-windows.jsonl'
Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue
${windowsAgentWorkspaceScript("Parallels npm update smoke test assistant.")}
Set-Item -Path ('Env:' + ${psSingleQuote(input.auth.apiKeyEnv)}) -Value ${psSingleQuote(input.auth.apiKeyValue)}
Invoke-OpenClaw agent --local --agent main --session-id parallels-npm-update-windows --message 'Reply with exact ASCII text OK only.' --thinking minimal --json`;

View File

@@ -904,6 +904,8 @@ $config.models.providers | Add-Member -Force -MemberType NoteProperty -Name open
timeoutSeconds = 300
})
$config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8
$sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-windows-smoke.jsonl'
Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue
${windowsAgentWorkspaceScript("Parallels Windows smoke test assistant.")}
Set-Item -Path ('Env:' + ${psSingleQuote(this.auth.apiKeyEnv)}) -Value ${psSingleQuote(this.auth.apiKeyValue)}
$args = ${psArray([

View File

@@ -424,6 +424,7 @@ console.log(JSON.stringify(result));
expect(script).toContain("finalAssistant(Raw|Visible)Text");
expect(script).toContain("$config.models.providers");
expect(script).toContain("timeoutSeconds = 300");
expect(script).toContain("parallels-windows-smoke.jsonl");
});
it("waits through transient Windows restoring state before VM operations", () => {