mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Merge pull request #6867 from Sanne/#6866
Have the JSchTest open ports on localhost rather than try guessing the address
This commit is contained in:
@@ -4,7 +4,6 @@ import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.CoreMatchers.endsWith;
|
||||
import static org.hamcrest.core.Is.is;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.nio.file.Files;
|
||||
|
||||
import org.apache.sshd.server.SshServer;
|
||||
@@ -32,7 +31,7 @@ public class JSchTest {
|
||||
sshd.setPasswordAuthenticator(AcceptAllPasswordAuthenticator.INSTANCE);
|
||||
sshd.setPublickeyAuthenticator(AcceptAllPublickeyAuthenticator.INSTANCE);
|
||||
sshd.setCommandFactory(UnknownCommandFactory.INSTANCE);
|
||||
sshd.setHost(InetAddress.getLocalHost().getHostName());
|
||||
sshd.setHost("localhost");
|
||||
sshd.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user