incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1600822 - /sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java
Date Fri, 06 Jun 2014 08:25:27 GMT
Author: bdelacretaz
Date: Fri Jun  6 08:25:26 2014
New Revision: 1600822

URL: http://svn.apache.org/r1600822
Log:
SLING-3495 - add logging to try to understand why test is still failing at ci.apache.org

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java?rev=1600822&r1=1600821&r2=1600822&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/topology/LargeTopologyWithHubTest.java
Fri Jun  6 08:25:26 2014
@@ -24,6 +24,7 @@ import java.util.List;
 
 import org.apache.sling.commons.testing.junit.Retry;
 import org.apache.sling.commons.testing.junit.RetryRule;
+import org.apache.sling.discovery.TopologyView;
 import org.apache.sling.discovery.impl.setup.Instance;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
@@ -69,11 +70,11 @@ public class LargeTopologyWithHubTest {
     @Test
     @Retry(timeoutMsec=30000, intervalMsec=500)
     public void testLargeTopologyWithHub() {
-        logger.info("testLargeTopologyWithHub: checking if all connectors are registered");
-        TopologyTestHelper.assertTopologyConsistsOf(
-                hub.getDiscoveryService().getTopology(), 
-                slingIds.toArray(new String[slingIds.size()]));
-        logger.info("testLargeTopologyWithHub: end");
+        final TopologyView tv = hub.getDiscoveryService().getTopology();
+        logger.info(
+                "testLargeTopologyWithHub: checking if all connectors are registered, TopologyView
has {} Instances", 
+                tv.getInstances().size());
+        TopologyTestHelper.assertTopologyConsistsOf(tv, slingIds.toArray(new String[slingIds.size()]));
+        logger.info("testLargeTopologyWithHub: test passed");
     }
-
 }
\ No newline at end of file



Mime
View raw message