From 627bfbdfdf1d809f536ebce35f7e007a1e55c9e0 Mon Sep 17 00:00:00 2001 From: carlory Date: Thu, 6 Mar 2025 15:13:12 +0800 Subject: [PATCH] windows does not support sleep infinity --- test/e2e/framework/pod/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/pod/utils.go b/test/e2e/framework/pod/utils.go index 316517e0fec..7e9c68b5d09 100644 --- a/test/e2e/framework/pod/utils.go +++ b/test/e2e/framework/pod/utils.go @@ -43,7 +43,7 @@ const InfiniteSleepCommand = "trap exit TERM; while true; do sleep 1; done" // // This is useful for testing scenarios where the container is terminated // with a non-zero exit code. -const InfiniteSleepCommandWithoutGracefulShutdown = "sleep infinity" +const InfiniteSleepCommandWithoutGracefulShutdown = "while true; do sleep 1; done" // GenerateScriptCmd generates the corresponding command lines to execute a command. func GenerateScriptCmd(command string) []string {