Fix tests for webserver mode

This commit is contained in:
Matthias
2021-01-02 16:12:10 +01:00
parent 5c18c8726d
commit edb8c4f0e5
2 changed files with 24 additions and 6 deletions

View File

@@ -86,6 +86,14 @@ class ApiServer(RPCHandler):
logger.info("Stopping API Server")
self._server.cleanup()
@classmethod
def shutdown(cls):
cls.__initialized = False
del cls.__instance
cls.__instance = None
cls._has_rpc = False
cls._rpc = None
def send_msg(self, msg: Dict[str, str]) -> None:
pass