Skip to content

Commit eb179f7

Browse files
Update error message to Fix unit tests
1 parent f53f2d6 commit eb179f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public void testRuntimeSectionNonRuntimeType() throws IOException {
314314
XContentBuilder mapping = runtimeFieldMapping(builder -> builder.field("type", "unknown"));
315315
MapperParsingException e = expectThrows(MapperParsingException.class, () -> createMapperService(mapping));
316316
assertEquals(
317-
"Failed to parse mapping: The mapper type [unknown] declared on field [field] does not exist."
317+
"Failed to parse mapping: The mapper type [unknown] declared on runtime field [field] does not exist."
318318
+ " It might have been created within a future version or requires a plugin to be installed. Check the documentation.",
319319
e.getMessage()
320320
);
@@ -324,7 +324,7 @@ public void testRuntimeSectionHandlerNotFound() throws IOException {
324324
XContentBuilder mapping = runtimeFieldMapping(builder -> builder.field("type", "unknown"));
325325
MapperParsingException e = expectThrows(MapperParsingException.class, () -> createMapperService(mapping));
326326
assertEquals(
327-
"Failed to parse mapping: The mapper type [unknown] declared on field [field] does not exist."
327+
"Failed to parse mapping: The mapper type [unknown] declared on runtime field [field] does not exist."
328328
+ " It might have been created within a future version or requires a plugin to be installed. Check the documentation.",
329329
e.getMessage()
330330
);

0 commit comments

Comments
 (0)