mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Skip if no docker
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
@@ -10,7 +11,7 @@ import (
|
||||
// DockerIsConnected checks to see if a docker daemon is available (local or remote)
|
||||
func DockerIsConnected(t *testing.T) bool {
|
||||
// We have docker on travis so we should try to test
|
||||
if testutil.IsTravis() {
|
||||
if testutil.IsTravis() && runtime.GOOS == "linux" {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user