Skip to content

Commit c4b3a3a

Browse files
committed
another try
1 parent 2256646 commit c4b3a3a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/release/ReleaseNotesGeneratorTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ public void testTemplate(String templateFilename, String outputFilename, List<Ch
101101
writeResource(outputFile, actualOutput);
102102
assertFalse("UPDATE_EXPECTED_OUTPUT should be set back to false after updating output", UPDATE_EXPECTED_OUTPUT);
103103
} else {
104-
// expected resources files always contain \n newlines, but generated data has the system newline
105-
String[] expectedLines = expectedOutput.split("\n");
106-
String[] actualLines = actualOutput.split(System.lineSeparator());
104+
String[] expectedLines = expectedOutput.replace("\r", "").split("\n");
105+
String[] actualLines = actualOutput.split("\n");
107106

108107
assertThat(actualLines, arrayContaining(expectedLines));
109108
}

0 commit comments

Comments
 (0)