File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public async Task VerifyIdTokenCancel()
136
136
var canceller = new CancellationTokenSource ( ) ;
137
137
canceller . Cancel ( ) ;
138
138
var idToken = await FirebaseTokenVerifierTest . CreateTestTokenAsync ( ) ;
139
- await Assert . ThrowsAsync < OperationCanceledException > (
139
+ await Assert . ThrowsAnyAsync < OperationCanceledException > (
140
140
async ( ) => await FirebaseAuth . DefaultInstance . VerifyIdTokenAsync (
141
141
idToken , canceller . Token ) ) ;
142
142
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public async Task<IReadOnlyList<PublicKey>> GetPublicKeysAsync(
68
68
{
69
69
if ( _cachedKeys == null || _clock . UtcNow >= _expirationTime )
70
70
{
71
- await _lock . WaitAsync ( ) . ConfigureAwait ( false ) ;
71
+ await _lock . WaitAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
72
72
73
73
try
74
74
{
@@ -83,7 +83,7 @@ public async Task<IReadOnlyList<PublicKey>> GetPublicKeysAsync(
83
83
_cachedKeys = ParseKeys ( await response . Content . ReadAsStringAsync ( )
84
84
. ConfigureAwait ( false ) ) ;
85
85
var cacheControl = response . Headers . CacheControl ;
86
- if ( cacheControl != null && cacheControl . MaxAge . HasValue )
86
+ if ( cacheControl ? . MaxAge != null )
87
87
{
88
88
_expirationTime = now . Add ( cacheControl . MaxAge . Value )
89
89
. Subtract ( ClockSkew ) ;
You can’t perform that action at this time.
0 commit comments