Skip to content

Commit 52cd99c

Browse files
committed
tkgs ha tests fix
1 parent 72a52cd commit 52cd99c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/tkgs_ha_utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func verifyOnlineVolumeExpansionOnGc(client clientset.Interface, namespace strin
268268
"exec",
269269
pod.Name,
270270
"--namespace=" + namespace,
271-
"powershell.exe",
271+
"-- powershell.exe",
272272
"$out = New-Object byte[] 536870912; (New-Object Random).NextBytes($out); " +
273273
"[System.IO.File]::WriteAllBytes('/mnt/volume1/testdata2.txt', $out)",
274274
}
@@ -286,7 +286,7 @@ func verifyOnlineVolumeExpansionOnGc(client clientset.Interface, namespace strin
286286
"exec",
287287
pod.Name,
288288
"--namespace=" + namespace,
289-
"powershell.exe",
289+
"-- powershell.exe",
290290
"Copy-Item -Path '/mnt/volume1/testdata2.txt' " +
291291
"-Destination '/mnt/volume1/testdata2_pod.txt'",
292292
}
@@ -306,7 +306,7 @@ func verifyOnlineVolumeExpansionOnGc(client clientset.Interface, namespace strin
306306
"exec",
307307
pod.Name,
308308
"--namespace=" + namespace,
309-
"powershell.exe",
309+
"-- powershell.exe",
310310
"((Get-FileHash '/mnt/volume1/testdata2.txt' -Algorithm SHA256).Hash -eq " +
311311
"(Get-FileHash '/mnt/volume1/testdata2_pod.txt' -Algorithm SHA256).Hash)",
312312
}

0 commit comments

Comments
 (0)