File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
access-token-management/test/AccessTokenManagement.Tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,15 +308,15 @@ public void Removing_all_tokens_in_a_challenge_scheme_should_remove_items_shared
308
308
AccessToken = Guid . NewGuid ( ) . ToString ( ) ,
309
309
AccessTokenType = Guid . NewGuid ( ) . ToString ( ) ,
310
310
RefreshToken = Guid . NewGuid ( ) . ToString ( ) ,
311
- Expiration = new DateTimeOffset ( new DateTime ( Random . Shared . Next ( ) ) ) ,
311
+ Expiration = new DateTimeOffset ( new DateTime ( DateTime . Now . Ticks + Random . Shared . Next ( ) ) ) ,
312
312
DPoPJsonWebKey = Guid . NewGuid ( ) . ToString ( )
313
313
} ;
314
314
315
315
private UserToken GenerateAnotherTokenForADifferentResource ( UserToken previousToken ) => new UserToken
316
316
{
317
317
AccessToken = Guid . NewGuid ( ) . ToString ( ) ,
318
318
AccessTokenType = Guid . NewGuid ( ) . ToString ( ) ,
319
- Expiration = new DateTimeOffset ( new DateTime ( Random . Shared . Next ( ) ) ) ,
319
+ Expiration = new DateTimeOffset ( new DateTime ( DateTime . Now . Ticks + Random . Shared . Next ( ) ) ) ,
320
320
321
321
// These two values don't change when we switch resources
322
322
RefreshToken = previousToken . RefreshToken ,
You can’t perform that action at this time.
0 commit comments