Skip to content

Commit 924f342

Browse files
committed
CloneFixture: don't require a particular exception
Different transports may fail different ways.
1 parent 17a02cf commit 924f342

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)