windows does not support sleep infinity

This commit is contained in:
carlory 2025-03-06 15:13:12 +08:00
parent 50927130ff
commit 627bfbdfdf

View File

@ -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 {