@@ -37,23 +37,23 @@ public async Task CacheExtensions_CcaAlreadyExists_TestsAsync()
3737 {
3838 AuthenticationResult result ;
3939 // new InMemory serializer and new cca
40- result = await CreateAppAndGetTokenAsync ( CacheType . InMemory ) . ConfigureAwait ( false ) ;
40+ result = await CreateAppAndGetTokenAsync ( CacheType . InMemory ) ;
4141 Assert . Equal ( TokenSource . IdentityProvider , result . AuthenticationResultMetadata . TokenSource ) ;
4242 AssertCacheTelemetry ( result , CacheLevel . None ) ;
4343
44- result = await CreateAppAndGetTokenAsync ( CacheType . InMemory , addTokenMock : false ) . ConfigureAwait ( false ) ;
44+ result = await CreateAppAndGetTokenAsync ( CacheType . InMemory , addTokenMock : false ) ;
4545 Assert . Equal ( TokenSource . Cache , result . AuthenticationResultMetadata . TokenSource ) ;
4646 AssertCacheTelemetry ( result , CacheLevel . L1Cache ) ;
4747
4848 //Resetting token caches due to potential collision with other tests
4949 TokenCacheExtensions . s_serviceProviderFromAction . Clear ( ) ;
5050
5151 // new DistributedInMemory and same cca
52- result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory ) . ConfigureAwait ( false ) ;
52+ result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory ) ;
5353 Assert . Equal ( TokenSource . IdentityProvider , result . AuthenticationResultMetadata . TokenSource ) ;
5454 AssertCacheTelemetry ( result , CacheLevel . None ) ;
5555
56- result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , addTokenMock : false ) . ConfigureAwait ( false ) ;
56+ result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , addTokenMock : false ) ;
5757 Assert . Equal ( TokenSource . Cache , result . AuthenticationResultMetadata . TokenSource ) ;
5858 AssertCacheTelemetry ( result , CacheLevel . L1Cache ) ;
5959 }
@@ -63,11 +63,11 @@ public async Task CacheExtensions_CcaAlreadyExistsL2_TestsAsync()
6363 {
6464 AuthenticationResult result ;
6565 // new DistributedInMemory serializer with L1 cache disabled
66- result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , disableL1Cache : true ) . ConfigureAwait ( false ) ;
66+ result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , disableL1Cache : true ) ;
6767 Assert . Equal ( TokenSource . IdentityProvider , result . AuthenticationResultMetadata . TokenSource ) ;
6868 AssertCacheTelemetry ( result , CacheLevel . None ) ;
6969
70- result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , addTokenMock : false , disableL1Cache : true ) . ConfigureAwait ( false ) ;
70+ result = await CreateAppAndGetTokenAsync ( CacheType . DistributedInMemory , addTokenMock : false , disableL1Cache : true ) ;
7171 Assert . Equal ( TokenSource . Cache , result . AuthenticationResultMetadata . TokenSource ) ;
7272 AssertCacheTelemetry ( result , CacheLevel . L2Cache ) ;
7373 }
@@ -181,10 +181,10 @@ public async Task SingletonMsal_ResultsInCorrectCacheEntries_Test()
181181 // Different tenants used to created different cache entries
182182 var result1 = await confidentialApp . AcquireTokenForClient ( new [ ] { TestConstants . s_scopeForApp } )
183183 . WithTenantId ( tenantId1 )
184- . ExecuteAsync ( ) . ConfigureAwait ( false ) ;
184+ . ExecuteAsync ( ) ;
185185 var result2 = await confidentialApp . AcquireTokenForClient ( new [ ] { TestConstants . s_scopeForApp } )
186186 . WithTenantId ( tenantId2 )
187- . ExecuteAsync ( ) . ConfigureAwait ( false ) ;
187+ . ExecuteAsync ( ) ;
188188
189189 Assert . Equal ( TokenSource . IdentityProvider , result1 . AuthenticationResultMetadata . TokenSource ) ;
190190 Assert . Equal ( TokenSource . IdentityProvider , result2 . AuthenticationResultMetadata . TokenSource ) ;
@@ -261,12 +261,12 @@ private async Task<AuthenticationResult> GetTokensAssociatedWithKey(string? cach
261261 . WithClientSecret ( TestConstants . ClientSecret )
262262 . Build ( ) ;
263263
264- await msalMemoryTokenCacheProvider . InitializeAsync ( confidentialApp . AppTokenCache ) . ConfigureAwait ( false ) ;
264+ await msalMemoryTokenCacheProvider . InitializeAsync ( confidentialApp . AppTokenCache ) ;
265265
266266 AuthenticationResult result = await confidentialApp
267267 . AcquireTokenForClient ( [ "https://graph.microsoft.com/.default" ] )
268268 . ExecuteAsync ( )
269- . ConfigureAwait ( false ) ;
269+ ;
270270
271271 Assert . Equal (
272272 expectCacheHit ?
@@ -289,13 +289,13 @@ private async Task<AuthenticationResult> GetTokensAssociatedWithKey(string? cach
289289 [ Fact ]
290290 public async Task CacheKeyExtensibility ( )
291291 {
292- var result = await GetTokensAssociatedWithKey ( "foo" , expectCacheHit : false ) . ConfigureAwait ( false ) ;
293- result = await GetTokensAssociatedWithKey ( "bar" , expectCacheHit : false ) . ConfigureAwait ( false ) ;
294- result = await GetTokensAssociatedWithKey ( null , expectCacheHit : false ) . ConfigureAwait ( false ) ;
292+ var result = await GetTokensAssociatedWithKey ( "foo" , expectCacheHit : false ) ;
293+ result = await GetTokensAssociatedWithKey ( "bar" , expectCacheHit : false ) ;
294+ result = await GetTokensAssociatedWithKey ( null , expectCacheHit : false ) ;
295295
296- result = await GetTokensAssociatedWithKey ( "foo" , expectCacheHit : true ) . ConfigureAwait ( false ) ;
297- result = await GetTokensAssociatedWithKey ( "bar" , expectCacheHit : true ) . ConfigureAwait ( false ) ;
298- result = await GetTokensAssociatedWithKey ( null , expectCacheHit : true ) . ConfigureAwait ( false ) ;
296+ result = await GetTokensAssociatedWithKey ( "foo" , expectCacheHit : true ) ;
297+ result = await GetTokensAssociatedWithKey ( "bar" , expectCacheHit : true ) ;
298+ result = await GetTokensAssociatedWithKey ( null , expectCacheHit : true ) ;
299299 }
300300
301301 private enum CacheType
@@ -353,7 +353,7 @@ private static async Task<AuthenticationResult> CreateAppAndGetTokenAsync(
353353 }
354354
355355 var result = await confidentialApp . AcquireTokenForClient ( new [ ] { TestConstants . s_scopeForApp } )
356- . ExecuteAsync ( ) . ConfigureAwait ( false ) ;
356+ . ExecuteAsync ( ) ;
357357
358358 tokenHandler . ReplaceMockHttpMessageHandler = null ! ;
359359 return result ;
0 commit comments