Attempt to fix failing Windows test

pull/20874/head
Phillip Webb 5 years ago
parent ffd499fdc7
commit 1abbfbbfcd

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

Loading…
Cancel
Save