diff --git a/dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/IOUtilsTest.java b/dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/IOUtilsTest.java index a6d79663e75..f465ed1e556 100644 --- a/dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/IOUtilsTest.java +++ b/dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/IOUtilsTest.java @@ -107,7 +107,7 @@ public void testReadLines() throws Exception { public void testWriteLines() throws Exception { IOUtils.writeLines(os, new String[]{TEXT}); ByteArrayOutputStream bos = (ByteArrayOutputStream) os; - assertThat(new String(bos.toByteArray()), equalTo(TEXT + "\n")); + assertThat(new String(bos.toByteArray()), equalTo(TEXT + System.lineSeparator())); } @Test