[TESTS] Fix expectations for GeoShapeQueryBuilderTests#testWrongFieldType

Relates #27730
This commit is contained in:
Jim Ferenczi 2017-12-11 13:31:58 +01:00
parent 25c606cf09
commit b35c459c96
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ public class GeoShapeQueryBuilderTests extends AbstractQueryTestCase<GeoShapeQue
}
public void testWrongFieldType() throws IOException {
assumeTrue("test runs only when at least a type is registered", getCurrentTypes().length > 0);
ShapeType shapeType = ShapeType.randomType(random());
ShapeBuilder shape = RandomShapeGenerator.createShapeWithin(random(), null, shapeType);
final GeoShapeQueryBuilder queryBuilder = new GeoShapeQueryBuilder(STRING_FIELD_NAME, shape);