You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/09/14 22:27:02 UTC

(commons-io) branch master updated: Adjust for file name too long error on some OS on GH CI

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 b17162ba4 Adjust for file name too long error on some OS on GH CI
b17162ba4 is described below

commit b17162ba43dcf7898d6fc7c6183466d211e0bf43
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Sep 14 18:26:57 2025 -0400

    Adjust for file name too long error on some OS on GH CI
---
 src/test/java/org/apache/commons/io/FileSystemTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/io/FileSystemTest.java b/src/test/java/org/apache/commons/io/FileSystemTest.java
index f4c841696..c84ac4923 100644
--- a/src/test/java/org/apache/commons/io/FileSystemTest.java
+++ b/src/test/java/org/apache/commons/io/FileSystemTest.java
@@ -526,7 +526,7 @@ void testXmlRoundtrip(final FileSystem fs, @TempDir final Path tempDir) throws E
         assertEquals("\uD83D\uDE03", fs.toLegalFileName("\uD83D\uDE03", '_', charset));
         assertEquals("\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03",
                 fs.toLegalFileName("\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03", '_', charset));
-        for (int i = 1; i <= 100; i++) {
+        for (int i = 1; i <= 10; i++) {
             final String name1 = fs.toLegalFileName(StringUtils.repeat("🦊", i), '_', charset);
             assertNotNull(name1);
             final byte[] name1Bytes = name1.getBytes();