Author: stefanegli Date: Thu Sep 24 11:25:58 2015 New Revision: 1705035 URL: http://svn.apache.org/viewvc?rev=1705035&view=rev Log: SLING-5030 related : adjust test timings
Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java?rev=1705035&r1=1705034&r2=1705035&view=diff ============================================================================== --- sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java (original) +++ sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java Thu Sep 24 11:25:58 2015 @@ -327,9 +327,11 @@ public class ClusterTest { // join the instances to form a cluster by sending out heartbeats runHeartbeatOnceWith(instance1, instance2, instance3, instance4, instance5); - Thread.sleep(250); + Thread.sleep(500); + runHeartbeatOnceWith(instance1, instance2, instance3, instance4, instance5); + Thread.sleep(500); runHeartbeatOnceWith(instance1, instance2, instance3, instance4, instance5); - Thread.sleep(250); + Thread.sleep(500); assertSameTopology(new SimpleClusterView(instance1, instance2)); assertSameTopology(new SimpleClusterView(instance3, instance4)); @@ -340,11 +342,11 @@ public class ClusterTest { runHeartbeatOnceWith(instance1, instance2, instance3, instance4, instance5); pingConnector(instance3, instance1); pingConnector(instance5, instance1); - Thread.sleep(250); + Thread.sleep(500); runHeartbeatOnceWith(instance1, instance2, instance3, instance4, instance5); pingConnector(instance3, instance1); pingConnector(instance5, instance1); - Thread.sleep(250); + Thread.sleep(500); // make asserts on the topology logger.info("testConnectorSwitching4139: instance1.slingId="+instance1.slingId); @@ -1229,6 +1231,11 @@ public class ClusterTest { instance3.runHeartbeatOnce(); logger.info("testPropertyProviders: 2nd 2s sleep"); Thread.sleep(2000); + instance1.runHeartbeatOnce(); + instance2.runHeartbeatOnce(); + instance3.runHeartbeatOnce(); + logger.info("testPropertyProviders: 3rd 2s sleep"); + Thread.sleep(2000); property1Value = UUID.randomUUID().toString(); property1Name = UUID.randomUUID().toString();