sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1712754 - /sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractClusterTest.java
Date Thu, 05 Nov 2015 12:59:12 GMT
Author: stefanegli
Date: Thu Nov  5 12:59:12 2015
New Revision: 1712754

URL: http://svn.apache.org/viewvc?rev=1712754&view=rev
Log:
no-jira : added another safety sleep of 2sec for testConnectorSwitching4139 to make sure those
heartbeats/votings going on there have enough time to settle

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=1712754&r1=1712753&r2=1712754&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
Thu Nov  5 12:59:12 2015
@@ -438,6 +438,8 @@ public abstract class AbstractClusterTes
                 .setMinEventDelay(1)
                 .setSlingId(instance1.getSlingId()).build();
         runHeartbeatOnceWith(instance1Restarted, instance2, instance3, instance5);
+        // give these heartbeats/votes some time .. so sleep 2sec (timeout is 10sec, so should
be safe)
+        Thread.sleep(2000);
         assertTrue(pingConnector(instance3, instance2));
         assertTrue(pingConnector(instance5, instance2));
         success = false;
@@ -476,7 +478,7 @@ public abstract class AbstractClusterTes
             if (i3ClusterSize==1) {
                 if (i<30) {
                     logger.info("testConnectorSwitching4139: [2] min loop cnt not yet reached:
i="+i);
-                    Thread.sleep(500); // 30x500ms = 15sec max - (vs 10sec timeout) - should
be enough for timing out
+                    Thread.sleep(500); // 30x500ms = 15sec max - (vs 10sec-2sec[sleep] timeout)
- should be enough for timing out
                     continue;
                 }
                 success = true;



Mime
View raw message