Skip to content

Commit 702e858

Browse files
committed
Remove ConfigureAwait(false) from OidcAuthTests for consistency in async calls
1 parent 91e3a68 commit 702e858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/KubernetesClient.Tests/OidcAuthTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public async Task TestOidcAuthWithWireMock()
8686
var auth = new OidcTokenProvider(clientId, clientSecret, idpIssuerUrl, expiredIdToken, refreshToken);
8787

8888
// Act
89-
var result = await auth.GetAuthenticationHeaderAsync(CancellationToken.None).ConfigureAwait(false);
89+
var result = await auth.GetAuthenticationHeaderAsync(CancellationToken.None);
9090

9191
// Assert
9292
result.Scheme.Should().Be("Bearer");
@@ -133,7 +133,7 @@ public async Task TestOidcAuthWithServerError()
133133

134134
// Act & Assert
135135
var exception = await Assert.ThrowsAsync<KubernetesClientException>(
136-
() => auth.GetAuthenticationHeaderAsync(CancellationToken.None)).ConfigureAwait(false);
136+
() => auth.GetAuthenticationHeaderAsync(CancellationToken.None));
137137
exception.Message.Should().StartWith("Unable to refresh OIDC token.");
138138
exception.InnerException.Message.Should().Contain("500");
139139

0 commit comments

Comments
 (0)