Skip to content

Commit

Permalink
Stop servers after executing the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Naduni Pamudika committed Jan 23, 2024
1 parent adec96f commit a1f049f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/integration/tests-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ under the License.
<packaging>pom</packaging>

<modules>
<!--module>tests-benchmark</module-->
<module>tests-benchmark</module>
<module>tests-backend</module>
<module>tests-restart</module>
<!--module>tests-config</module-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ public static Object[][] userModeDataProvider() {

@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
if (wireMockServer != null) {
wireMockServer.stop();
}
restAPIPublisher.deleteAPI(newSoapToRestAPIId);
userManagementClient.deleteRole(SOAPTOREST_ROLE);
userManagementClient.deleteUser(SOAPTOREST_TEST_USER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ private void waitForReply(WebSocketClientImpl clientSocket) {

@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
if (server != null) {
server.stop();
}
executorService.shutdownNow();
serverConfigurationManager.restoreToLastConfiguration();
}
Expand Down

0 comments on commit a1f049f

Please sign in to comment.