From fa5b5ceef1b0fc5a468db3412113bfe1b140d56a Mon Sep 17 00:00:00 2001 From: Martin Volf Date: Mon, 29 Jan 2024 09:30:00 +0100 Subject: [PATCH] better test coverage Signed-off-by: Martin Volf --- src/test/java/net/schmizz/sshj/ConnectedSocketTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {