diff --git a/embedded-redis/pom.xml b/embedded-redis/pom.xml index a0d8963d6..c23780d17 100644 --- a/embedded-redis/pom.xml +++ b/embedded-redis/pom.xml @@ -18,6 +18,10 @@ com.playtika.testcontainers testcontainers-common + + org.springframework + spring-test + org.springframework.data spring-data-redis diff --git a/embedded-redis/src/main/java/com/playtika/test/redis/RedisProperties.java b/embedded-redis/src/main/java/com/playtika/test/redis/RedisProperties.java index 0964d6f7b..3fba242e0 100644 --- a/embedded-redis/src/main/java/com/playtika/test/redis/RedisProperties.java +++ b/embedded-redis/src/main/java/com/playtika/test/redis/RedisProperties.java @@ -5,7 +5,7 @@ import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.util.SocketUtils; +import org.springframework.test.util.TestSocketUtils; import javax.annotation.PostConstruct; @@ -31,7 +31,7 @@ public RedisProperties() { @PostConstruct public void init() { if (this.port == 0) { - this.port = SocketUtils.findAvailableTcpPort(1025, 10000); + this.port = TestSocketUtils.findAvailableTcpPort(); } } diff --git a/testcontainers-spring-boot-parent/pom.xml b/testcontainers-spring-boot-parent/pom.xml index d2ab0b352..e85edad24 100644 --- a/testcontainers-spring-boot-parent/pom.xml +++ b/testcontainers-spring-boot-parent/pom.xml @@ -16,8 +16,8 @@ 1.17.5 - 2.7.5 - 2021.0.4 + 2.7.6 + 2021.0.5 3.2.0 3.11.1 5.9.1