Skip to content

Commit

Permalink
Guard against exceptions in close of test resource in @QuarkusMainInt…
Browse files Browse the repository at this point in the history
…egrationTest
  • Loading branch information
geoand committed Jul 26, 2022
1 parent ef00fec commit 29fe54c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ private ArtifactLauncher.LaunchResult doProcessStart(ExtensionContext context, S
System.setProperty(i.getKey(), i.getValue());
}
}
if (testResourceManager != null) {
testResourceManager.close();
try {
if (testResourceManager != null) {
testResourceManager.close();
}
} catch (Exception e) {
System.err.println("Unable to shutdown resource: " + e.getMessage());
}
}
} catch (Exception e) {
Expand Down

0 comments on commit 29fe54c

Please sign in to comment.