Skip to content

Commit 3b6be24

Browse files
author
Vladimir Kotal
committed
use wildcard socket for the server
1 parent 36f77d0 commit 3b6be24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/src/test/java/opengrok/auth/plugin/LdapServerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testSetGetUsername() {
8181
public void testIsReachable() throws IOException, InterruptedException, URISyntaxException {
8282
// Start simple TCP server on test port.
8383
InetAddress localhostAddr = InetAddress.getLoopbackAddress();
84-
try (ServerSocket serverSocket = new ServerSocket(0, 1, localhostAddr)) {
84+
try (ServerSocket serverSocket = new ServerSocket(0, 1)) {
8585
Thread thread = new Thread(() -> {
8686
try {
8787
while (true) {

0 commit comments

Comments
 (0)