From 47e50008a06562351b0ebd07143bcea380c38bf1 Mon Sep 17 00:00:00 2001 From: uboness Date: Thu, 21 May 2015 22:00:41 +0200 Subject: [PATCH] fixing failing test on windows Original commit: elastic/x-pack-elasticsearch@5af44b88d2ff2543500f0842126d0065f8aa7633 --- .../watcher/actions/email/DataAttachmentTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/watcher/actions/email/DataAttachmentTests.java b/src/test/java/org/elasticsearch/watcher/actions/email/DataAttachmentTests.java index fa1bd2f4614..9dba257695d 100644 --- a/src/test/java/org/elasticsearch/watcher/actions/email/DataAttachmentTests.java +++ b/src/test/java/org/elasticsearch/watcher/actions/email/DataAttachmentTests.java @@ -29,7 +29,7 @@ public class DataAttachmentTests extends ElasticsearchTestCase { Attachment attachment = DataAttachment.JSON.create(data); InputStream input = attachment.bodyPart().getDataHandler().getInputStream(); String content = Streams.copyToString(new InputStreamReader(input, Charsets.UTF_8)); - assertThat(content, is("{\n \"key\" : \"value\"\n}")); + assertThat(content, is("{\n \"key\" : \"value\"" + System.lineSeparator() + "}")); } @Test @@ -38,6 +38,6 @@ public class DataAttachmentTests extends ElasticsearchTestCase { Attachment attachment = DataAttachment.YAML.create(data); InputStream input = attachment.bodyPart().getDataHandler().getInputStream(); String content = Streams.copyToString(new InputStreamReader(input, Charsets.UTF_8)); - assertThat(content, is("---\nkey: \"value\"\n")); + assertThat(content, is("---\nkey: \"value\"" + System.lineSeparator())); } }