lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject lucene-solr:master: randomize v1 and v2
Date Tue, 13 Jun 2017 09:53:46 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 833a6f3ff -> 6d97305c6


randomize v1 and v2


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/6d97305c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6d97305c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6d97305c

Branch: refs/heads/master
Commit: 6d97305c635683afab1d1bbd07024f1c8f173bc0
Parents: 833a6f3
Author: Noble Paul <noble@apache.org>
Authored: Tue Jun 13 19:23:38 2017 +0930
Committer: Noble Paul <noble@apache.org>
Committed: Tue Jun 13 19:23:38 2017 +0930

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6d97305c/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java b/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
index de4a27a..db04486 100644
--- a/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
+++ b/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
@@ -50,7 +50,7 @@ public class TestReqParamsAPI extends SolrCloudTestCase {
   private void setupHarnesses() {
     for (final JettySolrRunner jettySolrRunner : cluster.getJettySolrRunners()) {
       RestTestHarness harness = new RestTestHarness(() -> jettySolrRunner.getBaseUrl().toString()
+ "/" + COLL_NAME);
-      if (true) {
+      if (random().nextBoolean()) {
         harness.setServerProvider(() -> jettySolrRunner.getBaseUrl().toString() + "/____v2/c/"
+ COLL_NAME);
       }
       restTestHarnesses.add(harness);


Mime
View raw message