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 f6cc8e243..0d4be93b6 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; @@ -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(); }