You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/01/24 15:57:55 UTC

[sling-org-apache-sling-serviceusermapper] 02/02: SLING-9026 : Reduce unused code and move embedded classes to own package space

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-serviceusermapper.git

commit 494baf4386372db3c4f01fd17b14e46c8abf6a1a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jan 24 16:57:32 2020 +0100

    SLING-9026 : Reduce unused code and move embedded classes to own package space
---
 .../sling/serviceusermapping/impl/ServiceUserMapperImplTest.java  | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/test/java/org/apache/sling/serviceusermapping/impl/ServiceUserMapperImplTest.java b/src/test/java/org/apache/sling/serviceusermapping/impl/ServiceUserMapperImplTest.java
index dfd9ec1..92c8abf 100644
--- a/src/test/java/org/apache/sling/serviceusermapping/impl/ServiceUserMapperImplTest.java
+++ b/src/test/java/org/apache/sling/serviceusermapping/impl/ServiceUserMapperImplTest.java
@@ -425,14 +425,6 @@ public class ServiceUserMapperImplTest {
         final ServiceRegistrationContextHelper context = new ServiceRegistrationContextHelper();
         final ServiceUserMapperImpl sum = new ServiceUserMapperImpl(context.getBundleContext(), config, executor);
 
-        while (context.getRegistrations(ServiceUserMappedImpl.SERVICEUSERMAPPED) == null
-                || context.getRegistrations(ServiceUserMappedImpl.SERVICEUSERMAPPED).size() < 3) {
-            try {
-                Thread.sleep(100);
-            } catch (InterruptedException e) {
-                // ignore
-            }
-        }
         TestCase.assertEquals(3, context.getRegistrations(ServiceUserMappedImpl.SERVICEUSERMAPPED).size());
 
         final MappingConfigAmendment mca1 = new MappingConfigAmendment();