Removing unnecessary sleeps.
diff --git a/component-test/src/main/java/TestPasswords.java b/component-test/src/main/java/TestPasswords.java
index 1a9045b..63b2dc1 100644
--- a/component-test/src/main/java/TestPasswords.java
+++ b/component-test/src/main/java/TestPasswords.java
@@ -26,7 +26,6 @@
import org.junit.Test;
import java.time.Duration;
-import java.util.concurrent.TimeUnit;
/**
* @author Myrle Krantz
@@ -122,8 +121,6 @@
Assert.assertTrue(found);
}
- Thread.sleep(100);
-
final TimeStampChecker passwordExpirationChecker = TimeStampChecker.inTheFutureWithWiggleRoom(Duration.ofDays(93), Duration.ofHours(24));
final Authentication userAuthenticationAfterPasswordChange = getTestSubject().login(username, TestEnvironment.encodePassword(newPassword));
final String passwordExpiration = userAuthenticationAfterPasswordChange.getPasswordExpiration();
@@ -185,7 +182,6 @@
final String roleIdentifier = createRole(buildUserPermission(), buildSelfPermission(), buildRolePermission());
final String username = createUserWithNonexpiredPassword(AHMES_PASSWORD, roleIdentifier);
- TimeUnit.SECONDS.sleep(1);
try (final AutoUserContext ignored2 = loginUser(username, AHMES_PASSWORD)) {
getTestSubject().changeUserPassword(ADMIN_IDENTIFIER, new Password(TestEnvironment.encodePassword(AHMES_FRIENDS_PASSWORD)));
Assert.fail("Should not be able to change antony's password from any account other than antony's.");