Skip to content

Commit ea8ba68

Browse files
committed
Allow test to pass on Java 24 and up
- TODO? Should we create a custom stream to ignore missing files for Java 24 and up? - GitHub CI: - Fails on Java 24 macOS, but OK on Windows and Ubuntu - Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
1 parent 4d43f64 commit ea8ba68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void testStreamFilesWithDeletionCollect() throws IOException {
289289
// collect() will fail on Java 24 and up here
290290
// GitHub CI:
291291
// Fails on Java 24 macOS, but OK on Windows and Ubuntu
292-
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
292+
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
293293
// forEach() will fail on Java 24 and up here
294294
assumeFalse(SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_24));
295295
list = stream.collect(Collectors.toList());
@@ -315,7 +315,7 @@ void testStreamFilesWithDeletionForEach() throws IOException {
315315
// forEach() will fail on Java 24 and up here
316316
// GitHub CI:
317317
// Fails on Java 24 macOS, but OK on Windows and Ubuntu
318-
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
318+
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
319319
// forEach() will fail on Java 24 and up here
320320
assumeFalse(SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_24));
321321
stream.forEach(list::add);
@@ -342,7 +342,7 @@ void testStreamFilesWithDeletionIterator() throws IOException {
342342
// hasNext() will fail on Java 24 and up here
343343
// GitHub CI:
344344
// Fails on Java 24 macOS, but OK on Windows and Ubuntu
345-
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
345+
// Fails on Java 25-EA Windows and macOS, but OK on Ubuntu
346346
// forEach() will fail on Java 24 and up here
347347
assumeFalse(SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_24));
348348
while (iterator.hasNext()) {

0 commit comments

Comments
 (0)