|
|
@@ -103,13 +103,13 @@ public class IndexingSlowLogTests extends ESTestCase {
|
|
|
final UncheckedIOException e = expectThrows(UncheckedIOException.class,
|
|
|
() -> IndexingSlowLogMessage.of(index, doc, 10, true, 3));
|
|
|
assertThat(e, hasToString(containsString("_failed_to_convert_[Unrecognized token 'invalid':"
|
|
|
- + " was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\\n"
|
|
|
- + " at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper)")));
|
|
|
+ + " was expecting ('true', 'false' or 'null')\\n"
|
|
|
+ + " at [Source: org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper")));
|
|
|
assertNotNull(e.getCause());
|
|
|
assertThat(e.getCause(), instanceOf(JsonParseException.class));
|
|
|
assertThat(e.getCause(), hasToString(containsString("Unrecognized token 'invalid':"
|
|
|
- + " was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n"
|
|
|
- + " at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper)")));
|
|
|
+ + " was expecting ('true', 'false' or 'null')\n"
|
|
|
+ + " at [Source: org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper")));
|
|
|
}
|
|
|
|
|
|
public void testReformatSetting() {
|