You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:26:02 UTC

[sling-org-apache-sling-discovery-base] 05/20: no-jira : added a 2sec wait time to increase test stability of testLongRunningListener

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

rombert pushed a commit to annotated tag org.apache.sling.discovery.base-1.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-base.git

commit acd97d35b34c78a67403e6a0fa0b92cd0b0bd353
Author: Stefan Egli <st...@apache.org>
AuthorDate: Wed Nov 4 17:11:12 2015 +0000

    no-jira : added a 2sec wait time to increase test stability of testLongRunningListener
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/base@1712591 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/discovery/base/its/AbstractClusterTest.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java b/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
index 9e510d3..190a758 100644
--- a/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
+++ b/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
@@ -1507,6 +1507,7 @@ public abstract class AbstractClusterTest {
         assertEquals(1, fastListener2.getRemainingExpectedCount());
         // and also listener2 should only get CHANGING, the CHANGED is blocked via changedSemaphore
         assertEquals(1, longRunningListener1.noninitReceived);
+        Thread.sleep(2000);
         assertTrue(longRunningListener1.getChangedSemaphore().hasQueuedThreads());
         Thread.sleep(2000);
         // even after a 2sec sleep things should be unchanged:

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.