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() {
161161 @ Test
162162 void cleanupExpiredTokens () {
163163 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 );
166166 this .oneTimeTokenService .setClock (clock );
167167 OneTimeToken token1 = this .oneTimeTokenService .generate (new GenerateOneTimeTokenRequest (USERNAME ));
168168 OneTimeToken token2 = this .oneTimeTokenService .generate (new GenerateOneTimeTokenRequest (USERNAME ));
You can’t perform that action at this time.
0 commit comments