Fix JsonLoggerTests.testJsonInStacktraceMessageIsSplitted backport#39830 #39834
a test was splitting a json log message with a wrong line separator. Using System.lineSeparator consistently prevents this problem closes #39829 backport#39830
This commit is contained in:
parent
e6b9262a31
commit
c23ff0803e
|
@ -174,7 +174,7 @@ public class JsonLoggerTests extends ESTestCase {
|
|||
logLine("file", Level.ERROR, "sample-name", "test", "error message " + json),
|
||||
|
||||
//stacktrace field will have each json line will in a separate array element
|
||||
stacktraceWith(("java.lang.Exception: " + json).split("\n"))
|
||||
stacktraceWith(("java.lang.Exception: " + json).split(LINE_SEPARATOR))
|
||||
)
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue