Author: centic
Date: Tue Aug 1 08:24:59 2023
New Revision: 1911384
URL: http://svn.apache.org/viewvc?rev=1911384&view=rev
Log:
Exclude some files in one test to avoid flakiness during parallel builds
This test failed once locally due to a temporary file
being deleted again when the test tried to access it
Modified:
poi/trunk/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java
Modified:
poi/trunk/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java?rev=1911384&r1=1911383&r2=1911384&view=diff
==============================================================================
--- poi/trunk/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java
(original)
+++ poi/trunk/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java
Tue Aug 1 08:24:59 2023
@@ -60,7 +60,12 @@ class TestReadAllFiles {
Objects.requireNonNull(files, "Could not find directory " +
hpsfTestDir.getAbsolutePath());
// convert to list of object-arrays for @Parameterized
- return Arrays.stream(files).map(Arguments::of);
+ return Arrays.
+ stream(files).
+ // exclude some files which can be created by other parallel
tests,
+ // but then might not exist any more when they are processed
here
+ filter(file -> !file.getName().endsWith("-saved.xls")).
+ map(Arguments::of);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]