sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1712591 - /sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
Date Wed, 04 Nov 2015 17:11:12 GMT
Author: stefanegli
Date: Wed Nov  4 17:11:12 2015
New Revision: 1712591

URL: http://svn.apache.org/viewvc?rev=1712591&view=rev
Log:
no-jira : added a 2sec wait time to increase test stability of testLongRunningListener

Modified:
    sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java

Modified: sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java?rev=1712591&r1=1712590&r2=1712591&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
(original)
+++ sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
Wed Nov  4 17:11:12 2015
@@ -1507,6 +1507,7 @@ public abstract class AbstractClusterTes
         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:



Mime
View raw message