mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 05:19:17 +00:00
LUCENE-9932: Fix test bug.
This commit is contained in:
parent
fd4b3c81d5
commit
8e94a591d8
@ -243,7 +243,7 @@ public class TestMutablePointsReaderUtils extends LuceneTestCase {
|
|||||||
System.arraycopy(
|
System.arraycopy(
|
||||||
dataDims, 0, value, config.packedIndexBytesLength, numDataDims * config.bytesPerDim);
|
dataDims, 0, value, config.packedIndexBytesLength, numDataDims * config.bytesPerDim);
|
||||||
points[i] =
|
points[i] =
|
||||||
new Point(value, isDocIdIncremental ? Math.min(i, maxDoc) : random().nextInt(maxDoc));
|
new Point(value, isDocIdIncremental ? Math.min(i, maxDoc - 1) : random().nextInt(maxDoc));
|
||||||
}
|
}
|
||||||
for (int i = 0; i < config.numIndexDims; ++i) {
|
for (int i = 0; i < config.numIndexDims; ++i) {
|
||||||
commonPrefixLengths[i] = config.bytesPerDim;
|
commonPrefixLengths[i] = config.bytesPerDim;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user