Skip to content

Commit 8e5c177

Browse files
committed
CloneFixture: don't require a particular exception
Different transports may fail different ways.
1 parent 167fa55 commit 8e5c177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void CloningAnUrlWithoutPathThrows()
302302
{
303303
var scd = BuildSelfCleaningDirectory();
304304

305-
Assert.Throws<InvalidSpecificationException>(() => Repository.Clone("http://github.com", scd.DirectoryPath));
305+
Assert.ThrowsAny<LibGit2SharpException>(() => Repository.Clone("http://github.com", scd.DirectoryPath));
306306
}
307307

308308
[Theory]

0 commit comments

Comments
 (0)