Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1061 replace SocketUtils with TestSocketUtils #1062

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions embedded-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<groupId>com.playtika.testcontainers</groupId>
<artifactId>testcontainers-common</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -31,7 +31,7 @@ public RedisProperties() {
@PostConstruct
public void init() {
if (this.port == 0) {
this.port = SocketUtils.findAvailableTcpPort(1025, 10000);
this.port = TestSocketUtils.findAvailableTcpPort();
}
}

Expand Down
4 changes: 2 additions & 2 deletions testcontainers-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<properties>
<testcontainers.version>1.17.5</testcontainers.version>
<spring.boot.version>2.7.5</spring.boot.version>
<spring.cloud.version>2021.0.4</spring.cloud.version>
<spring.boot.version>2.7.6</spring.boot.version>
<spring.cloud.version>2021.0.5</spring.cloud.version>
<spring.cloud.gcp.version>3.2.0</spring.cloud.gcp.version>
<equalsverifier.version>3.11.1</equalsverifier.version>
<junit-jupiter.version>5.9.1</junit-jupiter.version>
Expand Down