Bug 4104: Added timeout for SecurityService in JUnit test. Just for testing purposes, should not be used in production!

This commit is contained in:
Henri Kohlberg
2018-09-28 13:00:52 +02:00
parent 8c145ef3bd
commit 4e58a37592
@@ -97,8 +97,9 @@ public class TaggingServiceTest {
Activator.setSecurityService(securityService);
} else {
logger.info("Setup for TaggingServiceTest in an OSGi environment");
// TODO: This timeout of 2 minutes ist just for debugging purpose and should not be used in production!
securityService = ServiceTrackerFactory.createAndOpen(Activator.getContext(), SecurityService.class)
.getService();
.waitForService(120 * 1000);
}
// create & login user
securityService.createSimpleUser(username, email, password, fullName, company, null);