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 {