Skip if no docker

This commit is contained in:
Alex Dadgar
2017-10-19 16:55:10 -07:00
parent c231089cfd
commit 5b4e31bb5b
2 changed files with 78 additions and 5 deletions

View File

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