Skip to content

Commit b17162b

Browse files
committed
Adjust for file name too long error on some OS on GH CI
1 parent eda0565 commit b17162b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/commons/io/FileSystemTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void testXmlRoundtrip(final FileSystem fs, @TempDir final Path tempDir) throws E
526526
assertEquals("\uD83D\uDE03", fs.toLegalFileName("\uD83D\uDE03", '_', charset));
527527
assertEquals("\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03",
528528
fs.toLegalFileName("\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03\uD83D\uDE03", '_', charset));
529-
for (int i = 1; i <= 100; i++) {
529+
for (int i = 1; i <= 10; i++) {
530530
final String name1 = fs.toLegalFileName(StringUtils.repeat("🦊", i), '_', charset);
531531
assertNotNull(name1);
532532
final byte[] name1Bytes = name1.getBytes();

0 commit comments

Comments
 (0)