Skip to content

Commit d4ec7c5

Browse files
committed
MOTECH-2092 Unit test fix
1 parent 76ec30c commit d4ec7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/web-security/src/test/java/org/motechproject/security/service/authentication/MotechAuthenticationProviderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void shouldNotAuthenticateWrongPassword() {
122122
public void shouldChangeUserStatusToMustChangePass() {
123123
MotechUser motechUser = new MotechUser("bob", "encodedPassword", "entity_1", "", asList("some_role"), "", Locale.ENGLISH);
124124
motechUser.setUserStatus(UserStatus.ACTIVE);
125-
motechUser.setLastPasswordChange(DateTime.now().minusDays(2));
125+
motechUser.setLastPasswordChange(DateTime.now().minusDays(3));
126126

127127
when(motechUsersDao.findByUserName("bob")).thenReturn(motechUser);
128128
when(settingService.getNumberOfDaysToChangePassword()).thenReturn(2);

0 commit comments

Comments
 (0)