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 a04c6cad3d993c5a4e29dc37a89dd9d748f67697 Author: Stefan Egli <[email protected]> AuthorDate: Thu Nov 5 12:59:12 2015 +0000 no-jira : added another safety sleep of 2sec for testConnectorSwitching4139 to make sure those heartbeats/votings going on there have enough time to settle git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/base@1712754 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/sling/discovery/base/its/AbstractClusterTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 190a758..6690bb0 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 @@ -438,6 +438,8 @@ public abstract class AbstractClusterTest { .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 AbstractClusterTest { 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; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
