mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-20 02:42:24 +01:00
test: updates task test to catch recursion when defining without autostart
This commit is contained in:
@@ -26,6 +26,9 @@ async def test_start_and_stop_task(caplog: LogCaptureFixture) -> None:
|
|||||||
service_instance = MyService()
|
service_instance = MyService()
|
||||||
state_manager = StateManager(service_instance)
|
state_manager = StateManager(service_instance)
|
||||||
DataServiceObserver(state_manager)
|
DataServiceObserver(state_manager)
|
||||||
|
|
||||||
|
autostart_service_tasks(service_instance)
|
||||||
|
|
||||||
service_instance.my_task.start()
|
service_instance.my_task.start()
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user