You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/12/01 21:50:38 UTC

[GitHub] [helix] kaisun2000 commented on issue #1336: Flaky test testUpdateConfigFields

kaisun2000 commented on issue #1336:
URL: https://github.com/apache/helix/issues/1336#issuecomment-736842580


   ```
   
     @Test(dependsOnMethods = "checkUpdateFails")
     public void testValidateWeightForInstance()
         throws IOException {
       System.out.println("Start test :" + TestHelper.getTestMethodName());
       // Empty out ClusterConfig's weight key setting and InstanceConfig's capacity maps for testing
       ClusterConfig clusterConfig = _configAccessor.getClusterConfig(CLUSTER_NAME);
       clusterConfig.getRecord()
           .setListField(ClusterConfig.ClusterConfigProperty.INSTANCE_CAPACITY_KEYS.name(),
               new ArrayList<>());
       _configAccessor.setClusterConfig(CLUSTER_NAME, clusterConfig);
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org