From 7fc34cec27c98bf3293d338d3cfefb07026a9516 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 28 Jul 2024 22:17:06 +0200 Subject: [PATCH] Quick fix to accept a default Docker host configured via Docker context --- .../gesellix/gradle/docker/tasks/GenericDockerTaskSpec.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/src/test/groovy/de/gesellix/gradle/docker/tasks/GenericDockerTaskSpec.groovy b/plugin/src/test/groovy/de/gesellix/gradle/docker/tasks/GenericDockerTaskSpec.groovy index 5e11a43..5c8d1b2 100644 --- a/plugin/src/test/groovy/de/gesellix/gradle/docker/tasks/GenericDockerTaskSpec.groovy +++ b/plugin/src/test/groovy/de/gesellix/gradle/docker/tasks/GenericDockerTaskSpec.groovy @@ -35,6 +35,8 @@ class GenericDockerTaskSpec extends Specification { then: dockerClient.env.dockerHost in [ DockerEnv.getDefaultDockerHost(), + // 'DockerEnv.getDefaultDockerHost()' should respect the docker context + "npipe:////./pipe/dockerDesktopLinuxEngine", // for GitHub, where integration tests use a Colima based Docker engine "unix:///Users/runner/.colima/default/docker.sock" ]