diff --git a/src/test/java/net/schmizz/sshj/ConnectedSocketTest.java b/src/test/java/net/schmizz/sshj/ConnectedSocketTest.java index 87bf3f3a..1424d62d 100644 --- a/src/test/java/net/schmizz/sshj/ConnectedSocketTest.java +++ b/src/test/java/net/schmizz/sshj/ConnectedSocketTest.java @@ -51,7 +51,7 @@ private static interface Connector { private static void connectViaHostname(SshServerExtension fx) throws IOException { SshServer server = fx.getServer(); - fx.getClient().connect(server.getHost(), server.getPort()); + fx.getClient().connect("localhost", server.getPort()); } private static void connectViaAddr(SshServerExtension fx) throws IOException {