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:
Guillaume Smet
2020-01-29 23:55:43 +01:00
committed by GitHub

View File

@@ -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();
}