You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2020/10/19 17:19:25 UTC

[lucene-solr] branch branch_8_7 updated: LUCENE-9524: Fix test failure.

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

jpountz pushed a commit to branch branch_8_7
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8_7 by this push:
     new 2019433  LUCENE-9524: Fix test failure.
2019433 is described below

commit 2019433e92f3c26e3abe1b2201f4590f9dfb21be
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Mon Oct 19 19:17:58 2020 +0200

    LUCENE-9524: Fix test failure.
---
 .../src/test/org/apache/lucene/search/spans/TestSpanExplanations.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
index 966cde1..b16d0a2 100644
--- a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
+++ b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
@@ -193,7 +193,7 @@ public class TestSpanExplanations extends BaseExplanationTestCase {
         IndexSearcher indexSearcher = newSearcher(reader);
         SpanWeight spanWeight = query.createWeight(indexSearcher, ScoreMode.COMPLETE_NO_SCORES, 1f);
 
-        final LeafReaderContext ctx = reader.leaves().get(0);
+        final LeafReaderContext ctx = indexSearcher.getIndexReader().leaves().get(0);
         Explanation explanation = spanWeight.explain(ctx, 0);
 
         assertEquals(0f, explanation.getValue());