Merge pull request #4707 from abstractj/KEYCLOAK-5858

[KEYCLOAK-5858] Failing TokensTest in Console UI Tests
This commit is contained in:
Pavel Drozd 2017-11-22 13:22:28 +01:00 committed by GitHub
commit 12bdf48ecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,8 +137,8 @@ public class TokensTest extends AbstractRealmTest {
Map<String, Integer> userActionTokens = getUserActionTokens(); Map<String, Integer> userActionTokens = getUserActionTokens();
assertThat("Action Token attributes list should contain 2 items", userActionTokens.entrySet(), Matchers.hasSize(2)); assertThat("Action Token attributes list should contain 2 items", userActionTokens.entrySet(), Matchers.hasSize(2));
assertThat(userActionTokens, Matchers.hasEntry(VerifyEmailActionToken.TOKEN_TYPE, Long.toString(TimeUnit.DAYS.toSeconds(TIMEOUT)))); assertThat(userActionTokens, Matchers.hasEntry(VerifyEmailActionToken.TOKEN_TYPE, (int)(TimeUnit.DAYS.toSeconds(TIMEOUT))));
assertThat(userActionTokens, Matchers.hasEntry(ResetCredentialsActionToken.TOKEN_TYPE, Long.toString(TimeUnit.HOURS.toSeconds(TIMEOUT)))); assertThat(userActionTokens, Matchers.hasEntry(ResetCredentialsActionToken.TOKEN_TYPE, (int)(TimeUnit.HOURS.toSeconds(TIMEOUT))));
} }