Skip to content

Commit 0a79578

Browse files
committed
BAEL-3603 Add line separator to preserve lines read
1 parent 4e1d7e7 commit 0a79578

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core-java-modules/core-java-io-2/src/test/java/com/baeldung/blockingnonblocking/BlockingClientUnitTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void givenJavaIOSocket_whenReadingAndWritingWithStreams_thenReadSuccessfu
4040

4141
for (String line; (line = reader.readLine()) != null; ) {
4242
ourStore.append(line);
43+
ourStore.append(System.lineSeparator());
4344
}
4445
}
4546

0 commit comments

Comments
 (0)