lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr git commit: make test less evil
Date Mon, 07 Mar 2016 13:38:04 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master b79067a45 -> 9082d5f8f


make test less evil


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

Branch: refs/heads/master
Commit: 9082d5f8f4b07725e452ddf556cce72b9c4a3111
Parents: b79067a
Author: Mike McCandless <mikemccand@apache.org>
Authored: Mon Mar 7 08:38:38 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Mon Mar 7 08:38:38 2016 -0500

----------------------------------------------------------------------
 .../core/src/test/org/apache/lucene/search/TestPointQueries.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9082d5f8/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java b/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
index 5a3483b..500bb8f 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
@@ -351,12 +351,12 @@ public class TestPointQueries extends LuceneTestCase {
 
   @Nightly
   public void testRandomLongsBig() throws Exception {
-    doTestRandomLongs(200000);
+    doTestRandomLongs(100000);
   }
 
   private void doTestRandomLongs(int count) throws Exception {
 
-    int numValues = atLeast(count);
+    int numValues = TestUtil.nextInt(random(), count, count*2);
 
     if (VERBOSE) {
       System.out.println("TEST: numValues=" + numValues);


Mime
View raw message