From 519c7f678729d27f6bad91e64ff2755bc753197d Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Wed, 29 Jan 2020 16:43:38 +0000 Subject: [PATCH] Have the JSchTest open ports on localhost rather than try guessing the address --- .../jsch/src/test/java/io/quarkus/it/jsch/JSchTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration-tests/jsch/src/test/java/io/quarkus/it/jsch/JSchTest.java b/integration-tests/jsch/src/test/java/io/quarkus/it/jsch/JSchTest.java index 2d54975af..fe9f3db16 100644 --- a/integration-tests/jsch/src/test/java/io/quarkus/it/jsch/JSchTest.java +++ b/integration-tests/jsch/src/test/java/io/quarkus/it/jsch/JSchTest.java @@ -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; @@ -33,7 +32,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(); }