incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1500014 - /sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java
Date Fri, 05 Jul 2013 14:07:45 GMT
Author: stefanegli
Date: Fri Jul  5 14:07:45 2013
New Revision: 1500014

URL: http://svn.apache.org/r1500014
Log:
SLING-2945 : slowing down test to have it run on jenkins/travis properly

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java?rev=1500014&r1=1500013&r2=1500014&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterLoadTest.java
Fri Jul  5 14:07:45 2013
@@ -47,7 +47,7 @@ public class ClusterLoadTest {
                 .getClusterViewService().getClusterView().getInstances().get(0)
                 .getClass());
         firstInstance.startHeartbeats(1);
-        Thread.sleep(2000);
+        Thread.sleep(4000);
         // after a heartbeat and letting it settle, the discovery service must have
         // established a view - test for that
         assertEquals(EstablishedInstanceDescription.class, firstInstance
@@ -57,7 +57,7 @@ public class ClusterLoadTest {
         Instance secondInstance = Instance.newClusterInstance("/var/discovery/impl/ClusterLoadTest/testFramework/",
"secondInstance", firstInstance, false, 2, 0);
         instances.add(secondInstance);
         secondInstance.startHeartbeats(1);
-        Thread.sleep(2000);
+        Thread.sleep(4000);
         assertEquals(firstInstance.getClusterViewService().getClusterView().getInstances().size(),
2);
         assertEquals(secondInstance.getClusterViewService().getClusterView().getInstances().size(),
2);
     }
@@ -109,8 +109,8 @@ public class ClusterLoadTest {
 			logger.info("=====================");
 			logger.info(" START of LOOP "+i);
 			logger.info("=====================");
-			// wait 2 heartbeat intervals to let things settle
-			Thread.sleep(3000);
+			// wait 4 heartbeat intervals to let things settle
+			Thread.sleep(5000);
 			
 			// count how many instances had heartbeats running in the first place
 			int aliveCnt = 0;



Mime
View raw message