Skip to content

Commit

Permalink
Ensure that @QuarkusIntegrationTest does not leave dandling processes
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and igorregis committed Oct 17, 2022
1 parent 31376f9 commit ca88634
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 ca88634

Please sign in to comment.