Skip to content

Commit

Permalink
Changed test container cleanup to use stop method (#1090)
Browse files Browse the repository at this point in the history
Signed-off-by: dhoard <[email protected]>
  • Loading branch information
dhoard authored Dec 8, 2024
1 parent fe394bb commit 9e45957
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,17 @@ public String getBaseUrl() {
/** Method to destroy the test environment */
public void destroy() {
if (javaAgentApplicationContainer != null) {
javaAgentApplicationContainer.close();
javaAgentApplicationContainer.stop();
javaAgentApplicationContainer = null;
}

if (standaloneExporterContainer != null) {
standaloneExporterContainer.close();
standaloneExporterContainer.stop();
standaloneExporterContainer = null;
}

if (standaloneApplicationContainer != null) {
standaloneApplicationContainer.close();
standaloneApplicationContainer.stop();
standaloneApplicationContainer = null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,22 @@ private String getPrometheusBaseUrl() {
/** Method to destroy the test environment */
public void destroy() {
if (javaAgentApplicationContainer != null) {
javaAgentApplicationContainer.close();
javaAgentApplicationContainer.stop();
javaAgentApplicationContainer = null;
}

if (standaloneExporterContainer != null) {
standaloneExporterContainer.close();
standaloneExporterContainer.stop();
standaloneExporterContainer = null;
}

if (standaloneApplicationContainer != null) {
standaloneApplicationContainer.close();
standaloneApplicationContainer.stop();
standaloneApplicationContainer = null;
}

if (prometheusContainer != null) {
prometheusContainer.close();
prometheusContainer.stop();
prometheusContainer = null;
}
}
Expand Down

0 comments on commit 9e45957

Please sign in to comment.