You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2021/09/10 15:40:28 UTC

[lucene] branch main updated: LUCENE-10094: Fix test bug

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

romseygeek 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 cc8c428  LUCENE-10094: Fix test bug
cc8c428 is described below

commit cc8c4283dd0b299d5b6a64ced0fb1b9acbc3bb30
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Fri Sep 10 16:29:48 2021 +0100

    LUCENE-10094: Fix test bug
---
 lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
index 57e7e7b..4173146 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
@@ -1877,7 +1877,7 @@ public class TestLRUQueryCache extends LuceneTestCase {
     searcher.count(q); // add to cache
 
     Weight weight = searcher.createWeight(searcher.rewrite(q), ScoreMode.COMPLETE_NO_SCORES, 1);
-    assertNotEquals(-1, weight.count(reader.leaves().get(0)));
+    assertNotEquals(-1, weight.count(searcher.reader.leaves().get(0)));
 
     reader.close();
     w.close();