mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
[WLGitBridgeIntegrationTest] ensure that we stop the started servers
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
@@ -47,6 +47,14 @@ public class MockSnapshotServer {
|
||||
port = ((NetworkConnector) server.getConnectors()[0]).getLocalPort();
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
try {
|
||||
server.stop();
|
||||
} catch (Exception e) {
|
||||
Log.warn("Exception when trying to stop server", e);
|
||||
}
|
||||
}
|
||||
|
||||
public void setState(SnapshotAPIState state) {
|
||||
responseBuilder.setState(state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user