Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 34c7adc7 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Fix unit test - 3 month password change issue

parent 5a96487b
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,8 @@ public class DBUserToUserROConverterTest {
}
private void givenAnExistingUserHavingAPasswordThatChangedNoLongerThanThreeMonthsAgo() {
// some month has less than 29 days -therefore -28
givenAnExistingUser("password", LocalDateTime.now().minusMonths(2).minusDays(28), null);
// some month has less than 29 days -therefore -27
givenAnExistingUser("password", LocalDateTime.now().minusMonths(2).minusDays(27), null);
}
private void givenAnExistingUserHavingAPasswordThatChangedMoreThanThreeMonthsAgo() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment