This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 638b71445 Test larger streams in org.apache.commons.io.function.IOStreamTest.testForEachOrderedAdaptParallel() 638b71445 is described below commit 638b71445b308cb081d4039e05d3d8c10f6dc468 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue May 6 13:47:36 2025 -0400 Test larger streams in org.apache.commons.io.function.IOStreamTest.testForEachOrderedAdaptParallel() --- src/test/java/org/apache/commons/io/function/IOStreamTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/apache/commons/io/function/IOStreamTest.java b/src/test/java/org/apache/commons/io/function/IOStreamTest.java index 8e2b2982e..4809752f5 100644 --- a/src/test/java/org/apache/commons/io/function/IOStreamTest.java +++ b/src/test/java/org/apache/commons/io/function/IOStreamTest.java @@ -317,6 +317,12 @@ public void testForEachOrderedAdaptParallel() throws IOException { final StringBuilder sb = new StringBuilder(); IOStream.adapt(Stream.of("A", "B").parallel()).forEachOrdered(sb::append); assertEquals("AB", sb.toString()); + sb.setLength(0); + IOStream.adapt(Stream.of("A", "B", "C").parallel()).forEachOrdered(sb::append); + assertEquals("ABC", sb.toString()); + sb.setLength(0); + IOStream.adapt(Stream.of("A", "B", "C", "D").parallel()).forEachOrdered(sb::append); + assertEquals("ABCB", sb.toString()); } @SuppressWarnings("resource") // custom stream not recognized by compiler warning machinery