github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/integration-cli/test_vars_test.go (about)

     1  package main
     2  
     3  // sleepCommandForDaemonPlatform is a helper function that determines what
     4  // the command is for a sleeping container based on the daemon platform.
     5  // The Windows busybox image does not have a `top` command.
     6  func sleepCommandForDaemonPlatform() []string {
     7  	if testEnv.OSType == "windows" {
     8  		return []string{"sleep", "240"}
     9  	}
    10  	return []string{"top"}
    11  }