psalagnac commented on code in PR #2901:
URL: https://github.com/apache/solr/pull/2901#discussion_r1878857962


##########
solr/core/src/test/org/apache/solr/handler/admin/api/ClusterPropsAPITest.java:
##########
@@ -103,10 +109,9 @@ public void testClusterPropertyOpsAllGood() throws 
Exception {
       // List Properties, this time there should be 1
       o = Utils.executeGET(client.getHttpClient(), baseUrlV2ClusterProps, 
Utils.JSONCONSUMER);
       assertNotNull(o);
-      assertEquals(1, ((List<?>) getObjectByPath(o, true, 
"clusterProperties")).size());
-      assertEquals(
-          testClusterProperty,
-          (String) ((List<?>) getObjectByPath(o, true, 
"clusterProperties")).get(0));
+      assertEquals(initCount + 1, ((List<?>) getObjectByPath(o, true, 
"clusterProperties")).size());

Review Comment:
   Good point. I'm updating the test to check the property exists instead of 
counting.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to