lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject lucene-solr git commit: SOLR-8451: fix randomization in test.
Date Thu, 28 Jan 2016 17:40:49 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5x e4fe039aa -> 93172e461


SOLR-8451: fix randomization in test.


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

Branch: refs/heads/branch_5x
Commit: 93172e461f76816474c1a1f2be8118c4b5e8538e
Parents: e4fe039
Author: Mark Miller <markrmiller@gmail.com>
Authored: Thu Jan 28 12:28:10 2016 -0500
Committer: Mark Miller <markrmiller@apache.org>
Committed: Thu Jan 28 12:40:39 2016 -0500

----------------------------------------------------------------------
 .../src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/93172e46/solr/core/src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java b/solr/core/src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java
index 8dbf99c..352010c 100644
--- a/solr/core/src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java
+++ b/solr/core/src/test/org/apache/solr/client/solrj/ConnectionReuseTest.java
@@ -79,7 +79,7 @@ public class ConnectionReuseTest extends AbstractFullDistribZkTestBase {
     
     SolrClient client;
     HttpClient httpClient = HttpClientUtil.createClient(null);
-    int rndClient = 0;//random().nextInt(3);
+    int rndClient = random().nextInt(3);
     if (rndClient == 0) {
       client = new ConcurrentUpdateSolrClient(url.toString(), httpClient, 6, 1); // currently
only testing with 1 thread
     } else if (rndClient == 1)  {


Mime
View raw message