diff --git a/test-framework/jacoco/runtime/src/main/java/io/quarkus/jacoco/runtime/ReportCreator.java b/test-framework/jacoco/runtime/src/main/java/io/quarkus/jacoco/runtime/ReportCreator.java index 0a5956c41905f..e118708a6c684 100644 --- a/test-framework/jacoco/runtime/src/main/java/io/quarkus/jacoco/runtime/ReportCreator.java +++ b/test-framework/jacoco/runtime/src/main/java/io/quarkus/jacoco/runtime/ReportCreator.java @@ -45,7 +45,7 @@ public void run() { long abortTime = System.currentTimeMillis() + 10000; Path datafile = Paths.get(reportInfo.dataFile); while (System.currentTimeMillis() < abortTime) { - if (Files.exists(datafile)) { + if (Files.exists(datafile) && Files.size(datafile) > 0) { break; } Thread.sleep(100);