[P] Fix datasource unit tests

This commit is contained in:
2026-03-31 12:39:26 +03:00
parent 0f053f5c8f
commit 058aac36c7
2 changed files with 6 additions and 2 deletions

View File

@@ -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)