Skip to content

Commit d7fc903

Browse files
committed
Probe Windows readiness with PowerShell
1 parent f36f3e2 commit d7fc903

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/instances/windows_guest_agent_integration_linux_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestWindowsGuestAgentIntegration(t *testing.T) {
7373
require.NoError(t, err)
7474
require.Eventually(t, func() bool {
7575
exit, err := guest.ExecIntoInstance(ctx, dialer, guest.ExecOptions{
76-
Command: []string{"cmd.exe", "/d", "/c", "exit", "0"},
76+
Command: []string{"powershell.exe", "-NoProfile", "-NonInteractive", "-Command", "exit 0"},
7777
Timeout: 5,
7878
})
7979
return err == nil && exit.Code == 0

0 commit comments

Comments
 (0)