[KEYCLOAK-5858] Failing TokensTest in Console UI Tests

This commit is contained in:
Bruno Oliveira 2017-11-16 00:24:12 -02:00
parent bc28223a77
commit d1579f62a3
No known key found for this signature in database
GPG key ID: 6119F27084DC9914

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))));
} }