Skip to content

Commit 80d222e

Browse files
authored
Fix flaky test detector failing on missing file (#13172)
1 parent 432f475 commit 80d222e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-report/src/main/java/io/opentelemetry/instrumentation/testreport/FlakyTestReporter.java

+7
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
178178

179179
return CONTINUE;
180180
}
181+
182+
@Override
183+
public FileVisitResult visitFileFailed(Path file, IOException exception) {
184+
System.err.println("Failed to visit " + file.toString());
185+
exception.printStackTrace();
186+
return CONTINUE;
187+
}
181188
});
182189
}
183190

0 commit comments

Comments
 (0)