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: quarkusio#28114
(cherry picked from commit 25cf7c6)
  • Loading branch information
geoand authored and gsmet committed Sep 30, 2022
1 parent e608298 commit b3a2ca8
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 b3a2ca8

Please sign in to comment.