Skip to content

Commit

Permalink
test: fix windows 2019 test failure
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
andyzhangx committed Aug 29, 2024
1 parent 4d10e97 commit 65d4ac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ func convertToPowershellCommandIfNecessary(command string) string {
case "touch /mnt/test-1/data":
return "echo $null >> C:\\mnt\\test-1\\data"
case "while true; do echo $(date -u) >> /mnt/test-1/data; sleep 100; done":
return "while (1) { Add-Content -Encoding Unicode C:\\mnt\\test-1\\data.txt $(Get-Date -Format u); sleep 1 }"
return "while (1) { Add-Content -Encoding Unicode C:\\mnt\\test-1\\data.txt $(Get-Date -Format u); sleep 100 }"
case "echo 'hello world' >> /mnt/test-1/data && while true; do sleep 100; done":
return "Add-Content -Encoding Unicode C:\\mnt\\test-1\\data.txt 'hello world'; while (1) { sleep 1 }"
return "Add-Content -NoClobber -Encoding Unicode C:\\mnt\\test-1\\data.txt 'hello world'; while (1) { sleep 100 }"
case "echo 'hello world' >> /mnt/test-1/data && while true; do sleep 3600; done":
return "Add-Content -Encoding Unicode C:\\mnt\\test-1\\data.txt 'hello world'; while (1) { sleep 1 }"
return "Add-Content -NoClobber -Encoding Unicode C:\\mnt\\test-1\\data.txt 'hello world'; while (1) { sleep 100 }"
}

return command
Expand Down

0 comments on commit 65d4ac3

Please sign in to comment.