Skip to content

Commit

Permalink
Take configured wait time into account in @QuarkusIntegrationTest for…
Browse files Browse the repository at this point in the history
… log file check

Relates to: quarkusio#17767 (comment)

(cherry picked from commit e1bb4f2)
  • Loading branch information
geoand authored and gsmet committed Dec 1, 2021
1 parent 778d5d1 commit cb24196
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ public void run() {
}

private boolean ensureProcessOutputFileExists() {
int i = 0;
while (i++ < 50) {
long bailoutTime = System.currentTimeMillis() + waitTime.toMillis();
while (System.currentTimeMillis() < bailoutTime) {
if (Files.exists(processOutput)) {
return true;
} else {
Expand Down

0 comments on commit cb24196

Please sign in to comment.