test: updates task test to catch recursion when defining without autostart

This commit is contained in:
Mose Müller 2024-09-21 08:36:47 +02:00
parent 488415436c
commit 1ac9e45c73

View File

@ -26,6 +26,9 @@ async def test_start_and_stop_task(caplog: LogCaptureFixture) -> None:
service_instance = MyService()
state_manager = StateManager(service_instance)
DataServiceObserver(state_manager)
autostart_service_tasks(service_instance)
service_instance.my_task.start()
await asyncio.sleep(0.1)