Skip to content

Commit ec0c7bc

Browse files
frwh47beiwei30
authored andcommitted
Fix a failed unit test on Windows (#1907)
* add demo * use System.lineSeparator() * delete my demo class
1 parent 5d21088 commit ec0c7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/IOUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void testReadLines() throws Exception {
107107
public void testWriteLines() throws Exception {
108108
IOUtils.writeLines(os, new String[]{TEXT});
109109
ByteArrayOutputStream bos = (ByteArrayOutputStream) os;
110-
assertThat(new String(bos.toByteArray()), equalTo(TEXT + "\n"));
110+
assertThat(new String(bos.toByteArray()), equalTo(TEXT + System.lineSeparator()));
111111
}
112112

113113
@Test

0 commit comments

Comments
 (0)