You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/10 09:59:47 UTC

[lucene] 34/50: SOLR-9735: Enable randomized testing between v1 and v2 APIs

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch branch_7_1
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 50a99fcd91b8d1fd07a4287e99c7eb5b2aca61fb
Author: Shalin Shekhar Mangar <sh...@apache.org>
AuthorDate: Thu Oct 26 15:19:32 2017 +0530

    SOLR-9735: Enable randomized testing between v1 and v2 APIs
    
    (cherry picked from commit 0fad80b)
    
    (cherry picked from commit 0dbfcdb)
---
 .../test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
index 335fdbc..942f882 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
@@ -784,7 +784,7 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
   }
 
   static SolrRequest createAutoScalingRequest(SolrRequest.METHOD m, String subPath, String message) {
-    boolean useV1 = false;
+    boolean useV1 = random().nextBoolean();
     String path = useV1 ? "/admin/autoscaling" : "/cluster/autoscaling";
     path += subPath != null ? subPath : "";
     return useV1