Skip to content

Commit

Permalink
Merge pull request quarkusio#21296 from stuartwdouglas/jacoco-eof
Browse files Browse the repository at this point in the history
Make sure there is contents in the data file
  • Loading branch information
geoand authored Nov 9, 2021
2 parents 98815f2 + cb26c21 commit 00e984b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00e984b

Please sign in to comment.