diff options
author | Dominik Stadler <centic@apache.org> | 2023-08-01 08:24:59 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2023-08-01 08:24:59 +0000 |
commit | cb835739c6ed374f8c0375fdb1b9ad14fa600c30 (patch) | |
tree | 50a54fc52c63a2624bb69ba1fa3a90ab2b4561a0 /poi | |
parent | 8e2b749cf607dc1a4f92c305abec3056835e5e72 (diff) | |
download | poi-cb835739c6ed374f8c0375fdb1b9ad14fa600c30.tar.gz poi-cb835739c6ed374f8c0375fdb1b9ad14fa600c30.zip |
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
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r-- | poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java b/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java index 4cf5a31eb7..395aab02cf 100644 --- a/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java +++ b/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java @@ -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); } /** |