lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:branch_6_0: LUCENE-7149: fix wrong test assert
Date Tue, 29 Mar 2016 22:52:19 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_0 00ffee552 -> 0db92bf6c


LUCENE-7149: fix wrong test assert


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

Branch: refs/heads/branch_6_0
Commit: 0db92bf6c2d9fa48bbce223407ba3b2c5956b463
Parents: 00ffee5
Author: Mike McCandless <mikemccand@apache.org>
Authored: Tue Mar 29 18:53:59 2016 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Tue Mar 29 18:53:59 2016 -0400

----------------------------------------------------------------------
 lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0db92bf6/lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java b/lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java
index 16bcc93..2f3a3a6 100644
--- a/lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java
+++ b/lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java
@@ -85,7 +85,7 @@ public class Test2BPoints extends LuceneTestCase {
     w.forceMerge(1);
     DirectoryReader r = DirectoryReader.open(w);
     IndexSearcher s = new IndexSearcher(r);
-    assertEquals(1250, s.count(LongPoint.newRangeQuery("long", 33640828, 33673327)));
+    assertEquals(numDocs, s.count(LongPoint.newRangeQuery("long", Long.MIN_VALUE, Long.MAX_VALUE)));
     assertTrue(r.leaves().get(0).reader().getPointValues().size("long") > Integer.MAX_VALUE);
     r.close();
     w.close();


Mime
View raw message