fix GeoHashGridTests precision parsing error

Previously, a hardcoded precision value of 4 was
used by these tests resulting in no approximation
errors. Now that the precision is between 1-12,
precision values of 1 and 2 result in potential
bucketing errors.

This commit adjusts the range to be 4-12.

Fixes #37892.
This commit is contained in:
Tal Levy 2019-01-25 17:29:04 -08:00
parent 58301ead6d
commit eb973a4744
1 changed files with 1 additions and 1 deletions

View File

@ -51,6 +51,6 @@ public class GeoHashGridTests extends GeoGridTestCase<InternalGeoHashGridBucket,
@Override @Override
protected int randomPrecision() { protected int randomPrecision() {
return randomIntBetween(1, 12); return randomIntBetween(4, 12);
} }
} }