tests: expect Docker on AppVeyor

Prepare to run docker on AppVeyor Windows environment
This commit is contained in:
Mahmood Ali
2019-02-20 07:41:47 -05:00
parent 427ab71b47
commit 2af30fb441
2 changed files with 15 additions and 7 deletions

View File

@@ -16,6 +16,10 @@ func DockerIsConnected(t *testing.T) bool {
return runtime.GOOS == "linux"
}
if testutil.IsAppVeyor() {
return runtime.GOOS == "windows"
}
client, err := docker.NewClientFromEnv()
if err != nil {
return false