You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/09/08 12:50:00 UTC

[GitHub] playaround88 commented on issue #2472: UT failed on windows, IOUtilsTest#testWriteLines

playaround88 commented on issue #2472: UT failed on windows, IOUtilsTest#testWriteLines
URL: https://github.com/apache/incubator-dubbo/issues/2472#issuecomment-419639798
 
 
   Change
   ```java
       @Test
       public void testWriteLines() throws Exception {
           IOUtils.writeLines(os, new String[]{TEXT});
           ByteArrayOutputStream bos = (ByteArrayOutputStream) os;
           assertThat(new String(bos.toByteArray()), equalTo(TEXT + "\r"));
       }
   ```
   To
   ```java
       @Test
       public void testWriteLines() throws Exception {
           IOUtils.writeLines(os, new String[]{TEXT});
           ByteArrayOutputStream bos = (ByteArrayOutputStream) os;
           assertThat(new String(bos.toByteArray()), equalTo(TEXT + System.lineSeparator()));
       }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org