test_vars_test.go 367 B

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