From c8860e6a95c7243c50c7b1ff101a16a6fa426b2c Mon Sep 17 00:00:00 2001 From: Sergio del Amo Caballero Date: Mon, 19 Aug 2024 12:13:30 +0200 Subject: [PATCH] ignore if docker is not available --- .../io/micronaut/flyway/postgresql/TransactionLockSpec.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flyway/src/test/groovy/io/micronaut/flyway/postgresql/TransactionLockSpec.groovy b/flyway/src/test/groovy/io/micronaut/flyway/postgresql/TransactionLockSpec.groovy index 5cc5de76..c3adcb37 100644 --- a/flyway/src/test/groovy/io/micronaut/flyway/postgresql/TransactionLockSpec.groovy +++ b/flyway/src/test/groovy/io/micronaut/flyway/postgresql/TransactionLockSpec.groovy @@ -4,8 +4,10 @@ package io.micronaut.flyway.postgresql import io.micronaut.flyway.AbstractFlywaySpec import io.micronaut.flyway.FlywayConfigurationProperties import org.flywaydb.core.Flyway +import org.testcontainers.DockerClientFactory import org.testcontainers.containers.PostgreSQLContainer import org.testcontainers.spock.Testcontainers +import spock.lang.Requires import spock.lang.Shared import spock.lang.Timeout @@ -13,6 +15,7 @@ import javax.sql.DataSource import java.util.concurrent.TimeUnit @Testcontainers +@Requires({ DockerClientFactory.instance().isDockerAvailable() }) class TransactionLockSpec extends AbstractFlywaySpec { String yaml = """\