File tree Expand file tree Collapse file tree
dd-java-agent/instrumentation/mule-4/src/test/groovy/mule4 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ class MuleForkedTest extends WithHttpServer<MuleTestContainer> {
7777
7878 @Override
7979 void stopServer (MuleTestContainer container ) {
80- container. undeploy(String . valueOf(buildProperties. get(TEST_APPLICATION_NAME )))
81- container. stop()
80+ if (container != null ) {
81+ container. undeploy(String . valueOf(buildProperties. get(TEST_APPLICATION_NAME )))
82+ container. stop()
83+ }
8284 }
8385
8486 def " test mule client remote request" () {
Original file line number Diff line number Diff line change @@ -95,8 +95,10 @@ class MuleHttpServerForkedTest extends HttpServerTest<MuleTestContainer> {
9595
9696 @Override
9797 void stopServer (MuleTestContainer container ) {
98- container. undeploy(String . valueOf(buildProperties. get(MuleTestApplicationConstants . TEST_APPLICATION_NAME )))
99- container. stop()
98+ if (container != null ) {
99+ container. undeploy(String . valueOf(buildProperties. get(MuleTestApplicationConstants . TEST_APPLICATION_NAME )))
100+ container. stop()
101+ }
100102 }
101103}
102104
You can’t perform that action at this time.
0 commit comments