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:
Ryan Ernst 2019-04-03 16:25:57 -07:00
parent a94e9500ac
commit a28d5f35d9
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ public class ScriptDocValuesGeoPointsTests extends ESTestCase {
GeoPoint[][] points = new GeoPoint[between(3, 10)][];
for (int d = 0; d < points.length; d++) {
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));
for (int d = 0; d < points.length; d++) {