Browse Source

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
tags/REL_5_2_4
Dominik Stadler 10 months ago
parent
commit
cb835739c6
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java

+ 6
- 1
poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java View File

@@ -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);
}

/**

Loading…
Cancel
Save