[P] Fix datasource unit tests
This commit is contained in:
@@ -39,7 +39,11 @@ class Datasource:
|
||||
self.connection_status = None
|
||||
self._new_points = []
|
||||
self._active_markers = []
|
||||
asyncio.ensure_future(self.connect_to_server())
|
||||
|
||||
try:
|
||||
asyncio.ensure_future(self.connect_to_server())
|
||||
except RuntimeError:
|
||||
Logger.info("No event loop detected, running in offline mode")
|
||||
|
||||
def get_new_points(self):
|
||||
Logger.debug(self._new_points)
|
||||
|
||||
Reference in New Issue
Block a user