Fix geo points missing test (#40704)
This commit initializes the geo points for the missing doc values test. fixes #40684
This commit is contained in:
parent
a94e9500ac
commit
a28d5f35d9
|
@ -118,6 +118,9 @@ public class ScriptDocValuesGeoPointsTests extends ESTestCase {
|
||||||
GeoPoint[][] points = new GeoPoint[between(3, 10)][];
|
GeoPoint[][] points = new GeoPoint[between(3, 10)][];
|
||||||
for (int d = 0; d < points.length; d++) {
|
for (int d = 0; d < points.length; d++) {
|
||||||
points[d] = new GeoPoint[randomBoolean() ? 0 : between(1, 10)];
|
points[d] = new GeoPoint[randomBoolean() ? 0 : between(1, 10)];
|
||||||
|
for (int i = 0; i< points[d].length; i++) {
|
||||||
|
points[d][i] = new GeoPoint(randomLat(), randomLon());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
final ScriptDocValues.GeoPoints geoPoints = new GeoPoints(wrap(points));
|
final ScriptDocValues.GeoPoints geoPoints = new GeoPoints(wrap(points));
|
||||||
for (int d = 0; d < points.length; d++) {
|
for (int d = 0; d < points.length; d++) {
|
||||||
|
|
Loading…
Reference in New Issue