File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/org/jenkinsci/plugins/gitclient/verifier Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments