Explicitly close Spring context in WS integration test

master
Rossen Stoyanchev 10 years ago
parent 8c727be4e1
commit 8f21c85511
  1. 6
      spring-websocket/src/test/java/org/springframework/web/socket/AbstractWebSocketIntegrationTests.java

@ -113,6 +113,12 @@ public abstract class AbstractWebSocketIntegrationTests {
catch (Throwable t) { catch (Throwable t) {
logger.error("Failed to stop server", t); logger.error("Failed to stop server", t);
} }
try {
this.wac.close();
}
catch (Throwable t) {
logger.error("Failed to close WebApplicationContext", t);
}
} }
protected String getWsBaseUrl() { protected String getWsBaseUrl() {

Loading…
Cancel
Save