Skip to content

Commit

Permalink
fixed persistent tango callback task
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Jan 14, 2025
1 parent b3450d1 commit 6560149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tango/test_tango_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ def callback(reading):
await asyncio.sleep(0.5)
assert val == "new label"

assert attr_proxy._poll_task
attr_proxy.unsubscribe_callback()


# --------------------------------------------------------------------
@pytest.mark.asyncio
Expand All @@ -479,6 +482,7 @@ def callback(reading, value):
attr_proxy.subscribe_callback(callback)
await asyncio.sleep(0.2)
assert "Could not poll the attribute" in str(attr_proxy.exception)
attr_proxy.unsubscribe_callback()


# --------------------------------------------------------------------
Expand Down

0 comments on commit 6560149

Please sign in to comment.