Skip to content

Commit

Permalink
test: fixed readFile() in ResourceVerify works on Windows (3094)
Browse files Browse the repository at this point in the history
chore(test): fixed readFile() in ResourceVerify for Windows

Signed-off-by: l3002 <[email protected]>
---
Merge branch 'eclipse-jkube:master' into Issue-Fix-eclipse-jkube#2841
  • Loading branch information
l3002 authored Jun 10, 2024
1 parent 0091e7f commit 7baf59a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static Object readWithPath(File file, String path) throws IOException {
}

public static String readFile(File path) throws IOException {
return new String(FileCopyUtils.copyToByteArray(Files.newInputStream(path.toPath())), Charset.defaultCharset());
return new String(FileCopyUtils.copyToByteArray(Files.newInputStream(path.toPath())), Charset.defaultCharset()).replaceAll(System.lineSeparator(), "\n");
}

public static TestContext createTestContext() {
Expand Down

0 comments on commit 7baf59a

Please sign in to comment.