Skip to content

Commit c3c6ebb

Browse files
committed
Fix an incorrect comparison in SourceFieldMapperTests#testDefaultMappingAndNoMapping.
This test was broken by the previous commit ca00b7.
1 parent 23c4c46 commit c3c6ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void testDefaultMappingAndNoMapping() throws Exception {
135135
assertThat(mapper.sourceMapper().enabled(), equalTo(false));
136136
fail();
137137
} catch (MapperParsingException e) {
138-
assertThat(e.getMessage(), equalTo("malformed mapping no root object found"));
138+
assertThat(e.getMessage(), equalTo("malformed mapping, no type name found"));
139139
// all is well
140140
}
141141
}

0 commit comments

Comments
 (0)