Skip to content

Commit

Permalink
Fix findAvailableTcpPort for redis from 1025 to 50000 (#1074)
Browse files Browse the repository at this point in the history
* Fix findAvailableTcpPort for redis from 1025 to 50000
  • Loading branch information
Fameing committed Dec 13, 2022
1 parent f9584b0 commit 067eb0e
Showing 1 changed file with 2 additions and 2 deletions.
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.test.util.TestSocketUtils;
import org.springframework.util.SocketUtils;

import javax.annotation.PostConstruct;

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

Expand Down

0 comments on commit 067eb0e

Please sign in to comment.