Skip to content

Commit

Permalink
increase added seconds to invalid nbf token to stabilize tests
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Jul 21, 2021
1 parent 1cca944 commit 3fab5a6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -59,7 +59,8 @@ final class JwtTestConstants {
UNSIGNED_JWT_TOKEN = createUnsignedJwt();
EXPIRED_JWT_TOKEN = createExpiredJwt();
VALID_NBF_AHEAD_OF_TIME_JWT_TOKEN = createNotBeforeAheadOfTimeJwt(Date.from(Instant.now().plusSeconds(10)));
INVALID_NBF_AHEAD_OF_TIME_JWT_TOKEN = createNotBeforeAheadOfTimeJwt(Date.from(Instant.now().plusSeconds(15)));
INVALID_NBF_AHEAD_OF_TIME_JWT_TOKEN =
createNotBeforeAheadOfTimeJwt(Date.from(Instant.now().plusSeconds(30)));
} catch (final Exception e) {
throw new IllegalStateException(e);
}
Expand Down

0 comments on commit 3fab5a6

Please sign in to comment.