epugh commented on code in PR #1206:
URL: https://github.com/apache/solr/pull/1206#discussion_r1103813300


##########
solr/core/src/test/org/apache/solr/cloud/LeaderVoteWaitTimeoutTest.java:
##########
@@ -179,74 +179,78 @@ public void basicTest() throws Exception {
 
   @Test
   public void testMostInSyncReplicasCanWinElection() throws Exception {
-    final String collectionName = "collection1";
-    CollectionAdminRequest.createCollection(collectionName, 1, 3)
+    // final String collectionName = "collection1";

Review Comment:
   I think the value of this PR is to use the same pattern everywhere (even 
though maybe the diff is bigger).    I want to only have a variable called 
collectionName if that is somehow important to the function of the test..  when 
I see the variable I immediately think, oh, it might change, and I need to 
think about that as I read the test.    Where as seeing the constant everywhere 
means I know that the name of the collection isn't important to the function of 
the test...   So thats why I made these changes, and yeah, it did make the diff 
bigger...   Does that argument sway your opinion?   I could split up this patch 
into multiple patches too if that was better...   My end goal on this PR is to 
use the same constant the same way everywhere that it makes sense......



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to