Skip to content

Commit

Permalink
Ensure that @QuarkusIntegrationTest does not leave dandling processes
Browse files Browse the repository at this point in the history
Fixes: #28114
  • Loading branch information
geoand committed Sep 21, 2022
1 parent 8de3274 commit 25cf7c6
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 25cf7c6

Please sign in to comment.