mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:50:45 +00:00
test: clear Windows Parallels smoke sessions
This commit is contained in:
@@ -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`;
|
||||
|
||||
@@ -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([
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user