Apache Solr open-source search software
LUCENE-8886: Fix TestMutablePointsReaderUtils tests
iverase754ce1f437c3
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex b6dd3d091e2..fdd681fb6cb 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 =======================Improvementsdiff --git a/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.java b/lucene/core/src/test/org/apache/lucene/util/bkd/TestMutablePointsReaderUtils.javaindex a78b898edfd..6f6bf0240cf 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;}