fixing failing test on windows
Original commit: elastic/x-pack-elasticsearch@5af44b88d2
This commit is contained in:
parent
1bdd84bcb2
commit
47e50008a0
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue