fixing failing test on windows

Original commit: elastic/x-pack-elasticsearch@5af44b88d2
This commit is contained in:
uboness 2015-05-21 22:00:41 +02:00
parent 1bdd84bcb2
commit 47e50008a0
1 changed files with 2 additions and 2 deletions

View File

@ -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()));
}
}