You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by pa...@apache.org on 2023/01/11 18:44:14 UTC

[lucene] branch main updated: Drop wrong assertion in TestBooleanQuery.testQueryMatchesCount (#12051)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new d3d9ab0044b Drop wrong assertion in TestBooleanQuery.testQueryMatchesCount (#12051)
d3d9ab0044b is described below

commit d3d9ab0044b166c028be97abcaba6424145039de
Author: Patrick Zhai <zh...@users.noreply.github.com>
AuthorDate: Wed Jan 11 10:44:06 2023 -0800

    Drop wrong assertion in TestBooleanQuery.testQueryMatchesCount (#12051)
---
 lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java
index 38ca9edf4e1..2af33bc10b7 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java
@@ -771,9 +771,6 @@ public class TestBooleanQuery extends LuceneTestCase {
     Query builtQuery = q.build();
 
     assertEquals(searcher.count(builtQuery), numMatchingDocs);
-    final Weight weight = searcher.createWeight(builtQuery, ScoreMode.COMPLETE, 1);
-    // tests that the Weight#count API returns -1 instead of returning the total number of matches
-    assertEquals(weight.count(reader.leaves().get(0)), -1);
 
     IOUtils.close(reader, w, dir);
   }