You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by iv...@apache.org on 2019/06/27 09:36:10 UTC

[lucene-solr] branch master updated: LUCENE-8886: Fix TestMutablePointsReaderUtils tests

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 754ce1f  LUCENE-8886: Fix TestMutablePointsReaderUtils tests
754ce1f is described below

commit 754ce1f437c3e6c9b40a273bad9d86f3a2f3d5e6
Author: iverase <iv...@apache.org>
AuthorDate: Thu Jun 27 11:35:54 2019 +0200

    LUCENE-8886: Fix TestMutablePointsReaderUtils tests
---
 lucene/CHANGES.txt                                                      | 2 ++
 .../test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index b6dd3d0..fdd681f 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -164,6 +164,8 @@ Other
 
 * LUCENE-8879: Improve BKDRadixSelector tests. (Ignacio Vera)
 
+* LUCENE-8886: Fix TestMutablePointsReaderUtils tests. (Ignacio Vera)
+
 ======================= Lucene 8.1.2 =======================
 
 Improvements
diff --git a/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java b/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java
index a78b898..6f6bf02 100644
--- a/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java
+++ b/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java
@@ -156,6 +156,7 @@ public class TestMutablePointsReaderUtils extends LuceneTestCase {
       this.packedValue.bytes[0] = (byte) random().nextInt(256);
       this.packedValue.offset = 1;
       this.packedValue.length = packedValue.length;
+      System.arraycopy(packedValue, 0, this.packedValue.bytes, 1, packedValue.length);
       this.doc = doc;
     }