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:37:15 UTC

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

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

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


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

commit 4e58515b0c6aa297be2416c5e5d70e9eda4fb1db
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 1377026..49a3ca5 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -137,6 +137,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 da75b12..c2a5163 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
@@ -157,6 +157,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;
     }