Skip to content

Commit

Permalink
Merge pull request quarkusio#34791 from sberyozkin/fix_oidc_wiremock_…
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
gastaldi authored Jul 17, 2023
2 parents d903356 + 20eafbc commit de112b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ private void doTestCodeFlowUserInfo(String tenantId, long internalIdTokenLifetim

Cookie sessionCookie = getSessionCookie(webClient, tenantId);
Date date = sessionCookie.getExpires();
assertEquals(internalIdTokenLifetime, date.toInstant().getEpochSecond() - issuedAt);
assertTrue(date.toInstant().getEpochSecond() - issuedAt >= internalIdTokenLifetime);
assertTrue(date.toInstant().getEpochSecond() - issuedAt <= internalIdTokenLifetime + 3);

webClient.getCookieManager().clearCookies();
}
Expand Down

0 comments on commit de112b9

Please sign in to comment.