Skip to content

Commit cb29d3d

Browse files
committed
Fix build-tools unit test on windows (elastic#39986)
1 parent f88e418 commit cb29d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/test/java/org/elasticsearch/gradle/ConcatFilesTaskTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public void testConcatenationWithUnique() throws IOException {
6666
file2.getParentFile().mkdirs();
6767
file1.createNewFile();
6868
file2.createNewFile();
69-
Files.write(file1.toPath(), "Hello\nHello".getBytes());
70-
Files.write(file2.toPath(), "Hello\nनमस्ते".getBytes());
69+
Files.write(file1.toPath(), ("Hello" + System.lineSeparator() + "Hello").getBytes(StandardCharsets.UTF_8));
70+
Files.write(file2.toPath(), ("Hello" + System.lineSeparator() + "नमस्ते").getBytes(StandardCharsets.UTF_8));
7171

7272
concatFilesTask.setFiles(project.fileTree(file1.getParentFile().getParentFile()));
7373

0 commit comments

Comments
 (0)