Skip to content

Commit

Permalink
Merge pull request #28118 from geoand/#28114
Browse files Browse the repository at this point in the history
Ensure that @QuarkusIntegrationTest does not leave dangling processes
  • Loading branch information
geoand authored Sep 21, 2022
2 parents 84f953c + 25cf7c6 commit 2c06dde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ public void includeAsSysProps(Map<String, String> systemProps) {

@Override
public void close() {
quarkusProcess.destroy();
LauncherUtil.destroyProcess(quarkusProcess);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,6 @@ public void includeAsSysProps(Map<String, String> systemProps) {

@Override
public void close() {
quarkusProcess.destroy();
LauncherUtil.destroyProcess(quarkusProcess);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static void ensureProcessIsAlive(Process quarkusProcess) {
* Try to destroy the process normally a few times
* and resort to forceful destruction if necessary
*/
private static void destroyProcess(Process quarkusProcess) {
static void destroyProcess(Process quarkusProcess) {
quarkusProcess.destroy();
int i = 0;
while (i++ < 10) {
Expand Down

0 comments on commit 2c06dde

Please sign in to comment.