Attempt to fix failing Windows test

This commit is contained in:
Phillip Webb
2020-04-06 23:48:28 -07:00
parent ffd499fdc7
commit 1abbfbbfcd

View File

@@ -132,6 +132,7 @@ class LayersIndexTests {
InputStream in = LayersIndexTests.class.getResourceAsStream(name);
Assert.state(in != null, "Can't read " + name);
String expectedContent = new String(FileCopyUtils.copyToByteArray(in), StandardCharsets.UTF_8);
expectedContent = expectedContent.replace("\r", "");
assertThat(actualContent).isEqualTo(expectedContent);
}
catch (IOException ex) {