File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/test/java/org/springframework/security/authentication/ott Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ void consumeWhenTokenIsExpiredThenReturnNull() {
161
161
@ Test
162
162
void cleanupExpiredTokens () {
163
163
Clock clock = mock (Clock .class );
164
- Instant fiveMinutesAgo = Instant .now ().minus (Duration .ofMinutes (5 ));
165
- given (clock .instant ()).willReturn (fiveMinutesAgo );
164
+ Instant tenMinutesAgo = Instant .now ().minus (Duration .ofMinutes (10 ));
165
+ given (clock .instant ()).willReturn (tenMinutesAgo );
166
166
this .oneTimeTokenService .setClock (clock );
167
167
OneTimeToken token1 = this .oneTimeTokenService .generate (new GenerateOneTimeTokenRequest (USERNAME ));
168
168
OneTimeToken token2 = this .oneTimeTokenService .generate (new GenerateOneTimeTokenRequest (USERNAME ));
You can’t perform that action at this time.
0 commit comments