Close Spring context in SockJS integration test setup
This commit is contained in:
@@ -82,7 +82,7 @@ public class JettyWebSocketTestServer implements WebSocketTestServer {
|
||||
@Override
|
||||
public void stop() throws Exception {
|
||||
if (this.jettyServer.isRunning()) {
|
||||
this.jettyServer.setStopTimeout(0);
|
||||
this.jettyServer.setStopTimeout(5000);
|
||||
this.jettyServer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,6 +122,12 @@ public abstract class AbstractSockJsIntegrationTests {
|
||||
catch (Throwable 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();
|
||||
|
||||
Reference in New Issue
Block a user