Skip to content

Commit d340f87

Browse files
committed
Disable test when Docker is not available
See gh-40585
1 parent de75283 commit d340f87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/LoadTimeWeaverAwareConsumerImportTestcontainersTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
2525
import org.springframework.boot.test.context.SpringBootTest;
2626
import org.springframework.boot.testcontainers.context.ImportTestcontainers;
27+
import org.springframework.boot.testsupport.testcontainers.DisabledIfDockerUnavailable;
2728
import org.springframework.context.annotation.Bean;
2829
import org.springframework.context.annotation.Configuration;
2930
import org.springframework.context.weaving.LoadTimeWeaverAware;
@@ -32,6 +33,7 @@
3233
import static org.assertj.core.api.Assertions.assertThat;
3334

3435
@SpringBootTest
36+
@DisabledIfDockerUnavailable
3537
@ImportTestcontainers(LoadTimeWeaverAwareConsumerContainers.class)
3638
public class LoadTimeWeaverAwareConsumerImportTestcontainersTests implements LoadTimeWeaverAwareConsumerContainers {
3739

0 commit comments

Comments
 (0)