diff --git a/qa/logging-config/src/test/java/org/elasticsearch/common/logging/ESJsonLayoutTests.java b/qa/logging-config/src/test/java/org/elasticsearch/common/logging/ESJsonLayoutTests.java index bdcbc41585d04..655424ce5b040 100644 --- a/qa/logging-config/src/test/java/org/elasticsearch/common/logging/ESJsonLayoutTests.java +++ b/qa/logging-config/src/test/java/org/elasticsearch/common/logging/ESJsonLayoutTests.java @@ -50,7 +50,7 @@ public void testLayout() { "\"node.name\": \"%node_name\", " + "\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}\"" + "%notEmpty{, %node_and_cluster_id }" + - "%exceptionAsJson }\n")); + "%exceptionAsJson }" + System.lineSeparator())); } public void testLayoutWithAdditionalFields() { @@ -72,7 +72,7 @@ public void testLayoutWithAdditionalFields() { "%notEmpty{, \"x-opaque-id\": \"%ESMessageField{x-opaque-id}\"}" + "%notEmpty{, \"someOtherField\": \"%ESMessageField{someOtherField}\"}" + "%notEmpty{, %node_and_cluster_id }" + - "%exceptionAsJson }\n")); + "%exceptionAsJson }" + System.lineSeparator())); } public void testLayoutWithAdditionalFieldOverride() { @@ -92,6 +92,6 @@ public void testLayoutWithAdditionalFieldOverride() { "\"node.name\": \"%node_name\"" + "%notEmpty{, \"message\": \"%ESMessageField{message}\"}" + "%notEmpty{, %node_and_cluster_id }" + - "%exceptionAsJson }\n")); + "%exceptionAsJson }" + System.lineSeparator())); } }