From 65d4ac39d5ff00705ad401491f4193844fbe0dc5 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 29 Aug 2024 06:40:41 +0000 Subject: [PATCH] test: fix windows 2019 test failure fix --- test/e2e/suite_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/suite_test.go b/test/e2e/suite_test.go index 560eab91a3f..53621687e6f 100644 --- a/test/e2e/suite_test.go +++ b/test/e2e/suite_test.go @@ -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