提交 8c727be4 编写于 作者: R Rossen Stoyanchev

Close Spring context in SockJS integration test setup

上级 70e6e3bb
...@@ -82,7 +82,7 @@ public class JettyWebSocketTestServer implements WebSocketTestServer { ...@@ -82,7 +82,7 @@ public class JettyWebSocketTestServer implements WebSocketTestServer {
@Override @Override
public void stop() throws Exception { public void stop() throws Exception {
if (this.jettyServer.isRunning()) { if (this.jettyServer.isRunning()) {
this.jettyServer.setStopTimeout(0); this.jettyServer.setStopTimeout(5000);
this.jettyServer.stop(); this.jettyServer.stop();
} }
} }
......
...@@ -122,6 +122,12 @@ public abstract class AbstractSockJsIntegrationTests { ...@@ -122,6 +122,12 @@ public abstract class AbstractSockJsIntegrationTests {
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 abstract Class<?> upgradeStrategyConfigClass(); protected abstract Class<?> upgradeStrategyConfigClass();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册