mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge pull request #59 from das7pad/tests/cleanup-resources
[tests] cleanup resources
This commit is contained in:
+8
@@ -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