Fix some windows tests

This commit is contained in:
Viktor Liu
2025-07-03 10:18:08 +02:00
parent 9e51d2e8fb
commit a21f924b26
3 changed files with 9 additions and 3 deletions

View File

@@ -463,7 +463,7 @@ func TestSSHServer_WindowsShellHandling(t *testing.T) {
// Test Windows cmd.exe shell behavior
args := server.getShellCommandArgs("cmd.exe", "echo test")
assert.Equal(t, "cmd.exe", args[0])
assert.Equal(t, "/c", args[1])
assert.Equal(t, "-Command", args[1])
assert.Equal(t, "echo test", args[2])
// Test PowerShell behavior