Skip to content

Commit a17a946

Browse files
committed
fixup! fixup! fixup! Allow the caller to inspect the host's certificate
1 parent 7260c80 commit a17a946

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void CanCloneFromBBWithCredentials(string url, string user, string pass,
239239

240240
[SkippableTheory]
241241
[InlineData("https://github.com/libgit2/TestGitRepository.git", "github.com", typeof(CertificateX509))]
242-
[InlineData("[email protected]/libgit2/TestGitRepository.git", "github.com", typeof(CertificateSsh))]
242+
[InlineData("[email protected]:libgit2/TestGitRepository.git", "github.com", typeof(CertificateSsh))]
243243
public void CanInspectCertificateOnClone(string url, string hostname, Type certType)
244244
{
245245
var scd = BuildSelfCleaningDirectory();
@@ -282,7 +282,8 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
282282
*
283283
* though GitHub's hostkey won't change anytime soon.
284284
*/
285-
Assert.Equal("1627aca576282d36631b564debdfa648", BitConverter.ToString(hostkey.HashMD5));
285+
Assert.Equal("1627aca576282d36631b564debdfa648",
286+
BitConverter.ToString(hostkey.HashMD5).ToLower().Replace("-", ""));
286287
return true;
287288
}
288289

0 commit comments

Comments
 (0)