Skip to content

Commit 8bfe765

Browse files
committed
Use the Trace2Exception
It seems that (probably due to updated dependencies), there is a problem where the `Trace2Exception` no longer inherits from `InvalidOperationException`. Let's use the former, then. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 48d06a7 commit 8bfe765

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/shared/Core.Tests/Authentication/BasicAuthenticationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task BasicAuthentication_GetCredentials_NonDesktopSession_NoTermina
7070

7171
var basicAuth = new BasicAuthentication(context);
7272

73-
await Assert.ThrowsAsync<InvalidOperationException>(() => basicAuth.GetCredentialsAsync(testResource));
73+
await Assert.ThrowsAsync<GitCredentialManager.Trace2InvalidOperationException>(() => basicAuth.GetCredentialsAsync(testResource));
7474
}
7575

7676
[Fact]

src/shared/Core.Tests/HostProviderRegistryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public async Task HostProviderRegistry_GetProvider_NoProviders_ThrowException()
4141
var registry = new HostProviderRegistry(context);
4242
var input = new InputArguments(new Dictionary<string, string>());
4343

44-
await Assert.ThrowsAsync<Exception>(() => registry.GetProviderAsync(input));
44+
await Assert.ThrowsAsync<GitCredentialManager.Trace2Exception>(() => registry.GetProviderAsync(input));
4545
}
4646

4747
[Fact]

0 commit comments

Comments
 (0)