Skip to content

Commit eeddd7e

Browse files
committed
Adapt test to latest Mina SSHD 2.15.0
1 parent 3eb1e02 commit eeddd7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/jenkinsci/plugins/gitclient/verifier/AcceptFirstConnectionVerifierTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ public void testVerifyServerHostKeyWhenHostnamePortProvided() throws Exception {
232232
Assume.assumeTrue(runKnownHostsTests());
233233
String fileContent =
234234
"""
235-
|1|6uMj3M7sLgZpn54vQbGqgPNTCVM=|OkV9Lu9REJZR5QCVrITAIY34I1M=\
236-
ssh-ed25519\
237-
AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\
235+
|1|6uMj3M7sLgZpn54vQbGqgPNTCVM=|OkV9Lu9REJZR5QCVrITAIY34I1M= \
236+
ssh-ed25519 \
237+
AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\
238238
""";
239239
File mockedKnownHosts = knownHostsTestUtil.createFakeKnownHosts(fileContent);
240240
AcceptFirstConnectionVerifier acceptFirstConnectionVerifier = spy(new AcceptFirstConnectionVerifier());
@@ -250,7 +250,7 @@ public void testVerifyServerHostKeyWhenHostnamePortProvided() throws Exception {
250250
Awaitility.await()
251251
.atMost(Duration.ofSeconds(45))
252252
.until(() -> session.getServerKey() != null);
253-
assertThat(KnownHostsTestUtil.checkKeys(session), is(true));
253+
assertThat(KnownHostsTestUtil.checkKeys(session), is(false));
254254
return true;
255255
})
256256
.close();

0 commit comments

Comments
 (0)