Test reports a timeout:
result: Error. "junit" action timed out with a timeout of 120 seconds on agent 6
but there is an actual failure (which presumably chewed up the time)
STARTED CommandCompletionTest::testUserHome 'testUserHome()'
org.opentest4j.TestAbortedException: Assumption failed: No suitable file(s) found for this test in /opt/home/mach5-run
Here is the failing code:
348: public void testUserHome() throws IOException {
349: List<String> completions;
350: Path home = Paths.get(System.getProperty("user.home"));
351: String selectedFile;
352: try (Stream<Path> content = Files.list(home)) {
353: selectedFile = content.filter(CLASSPATH_FILTER)
354: .filter(file -> file.getFileName().toString().contains(" "))
355: .findAny()
356: .map(file -> file.getFileName().toString().replace(" ", "\\ "))
357: .orElse(null);
358: }
359: Assumptions.assumeFalse(selectedFile == null, "No suitable file(s) found for this test in " + home);
result: Error. "junit" action timed out with a timeout of 120 seconds on agent 6
but there is an actual failure (which presumably chewed up the time)
STARTED CommandCompletionTest::testUserHome 'testUserHome()'
org.opentest4j.TestAbortedException: Assumption failed: No suitable file(s) found for this test in /opt/home/mach5-run
Here is the failing code:
348: public void testUserHome() throws IOException {
349: List<String> completions;
350: Path home = Paths.get(System.getProperty("user.home"));
351: String selectedFile;
352: try (Stream<Path> content = Files.list(home)) {
353: selectedFile = content.filter(CLASSPATH_FILTER)
354: .filter(file -> file.getFileName().toString().contains(" "))
355: .findAny()
356: .map(file -> file.getFileName().toString().replace(" ", "\\ "))
357: .orElse(null);
358: }
359: Assumptions.assumeFalse(selectedFile == null, "No suitable file(s) found for this test in " + home);
- relates to
-
JDK-8298973 jdk/jshell/CommandCompletionTest.java fails "CommandCompletionTest.testSave" test case
-
- Open
-