Skip to content

Commit 013a014

Browse files
Geo Point parse error fix (#40447)
Fixed compilation on 6.7
1 parent 57d5312 commit 013a014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ public void testInvalidGeopointValuesIgnored() throws Exception {
524524
.startObject().field("location", "NaN,12").endObject()
525525
), XContentType.JSON)).rootDoc().getField("location"), nullValue());
526526

527-
assertThat(defaultMapper.parse(new SourceToParse("test", "type", "1",
527+
assertThat(defaultMapper.parse(SourceToParse.source("test", "type", "1",
528528
BytesReference.bytes(XContentFactory.jsonBuilder()
529529
.startObject().startObject("location").nullField("lat").field("lon", 1).endObject().endObject()
530530
), XContentType.JSON)).rootDoc().getField("location"), nullValue());
531531

532-
assertThat(defaultMapper.parse(new SourceToParse("test", "type", "1",
532+
assertThat(defaultMapper.parse(SourceToParse.source("test", "type", "1",
533533
BytesReference.bytes(XContentFactory.jsonBuilder()
534534
.startObject().startObject("location").nullField("lat").nullField("lon").endObject().endObject()
535535
), XContentType.JSON)).rootDoc().getField("location"), nullValue());

0 commit comments

Comments
 (0)