We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2561f commit af2b842Copy full SHA for af2b842
core/src/test/java/org/springframework/security/authentication/ott/JdbcOneTimeTokenServiceTests.java
@@ -161,8 +161,8 @@ void consumeWhenTokenIsExpiredThenReturnNull() {
161
@Test
162
void cleanupExpiredTokens() {
163
Clock clock = mock(Clock.class);
164
- Instant fiveMinutesAgo = Instant.now().minus(Duration.ofMinutes(5));
165
- given(clock.instant()).willReturn(fiveMinutesAgo);
+ Instant tenMinutesAgo = Instant.now().minus(Duration.ofMinutes(10));
+ given(clock.instant()).willReturn(tenMinutesAgo);
166
this.oneTimeTokenService.setClock(clock);
167
OneTimeToken token1 = this.oneTimeTokenService.generate(new GenerateOneTimeTokenRequest(USERNAME));
168
OneTimeToken token2 = this.oneTimeTokenService.generate(new GenerateOneTimeTokenRequest(USERNAME));
0 commit comments