zhangmeng916 commented on a change in pull request #653: add Helix properties 
factory and class
URL: https://github.com/apache/helix/pull/653#discussion_r367131143
 
 

 ##########
 File path: 
helix-core/src/test/java/org/apache/helix/manager/zk/TestZkClusterManager.java
 ##########
 @@ -63,18 +63,11 @@ public void testController() throws Exception {
       _gZkClient.deleteRecursively("/" + clusterName);
     }
 
+    TestHelper.setupEmptyCluster(_gZkClient, clusterName);
+
     ZKHelixManager controller =
         new ZKHelixManager(clusterName, null, InstanceType.CONTROLLER, 
ZK_ADDR);
 
-    try {
-      controller.connect();
-      Assert.fail("Should throw HelixException if initial cluster structure is 
not setup");
 
 Review comment:
   The problem with the previous test is that the call to get default Helix 
manager property will fail because we have not set it up yet. The old 
ZKHelixManager constructor has no dependency on cluster set up, but the new one 
needs to get the cloud config from it. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to