You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the test authorizeWhenPasswordAndAuthorizedAndTokenNotExpiredButClockSkewForcesExpiryThenReauthorize in class PasswordOAuth2AuthorizedClientProviderTests aims at testing the case when a token is not expired but discarded because of Clock Skew. Based on the comment, it seems the test has been added to verify the fix of gh-7511.
However, in the test, the token is already expired (regardless of Clock Skew) :
Instant expiresAt = now.minus(Duration.ofMinutes(1)); --> token expired 1 minute ago
I think it should be :
Instant expiresAt = now.plus(Duration.ofMinutes(1)); --> token expires in 1 minute
The text was updated successfully, but these errors were encountered:
I believe the test
authorizeWhenPasswordAndAuthorizedAndTokenNotExpiredButClockSkewForcesExpiryThenReauthorize
in classPasswordOAuth2AuthorizedClientProviderTests
aims at testing the case when a token is not expired but discarded because of Clock Skew. Based on the comment, it seems the test has been added to verify the fix of gh-7511.However, in the test, the token is already expired (regardless of Clock Skew) :
Instant expiresAt = now.minus(Duration.ofMinutes(1));
--> token expired 1 minute agoI think it should be :
Instant expiresAt = now.plus(Duration.ofMinutes(1));
--> token expires in 1 minuteThe text was updated successfully, but these errors were encountered: