Ensure Bluetooth notifies can safely be cancelled after disconnect

This commit is contained in:
J. Nick Koston 2023-11-26 15:24:25 -06:00
parent 150ce726da
commit 2652ea6836
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -1214,6 +1214,10 @@ async def test_bluetooth_gatt_start_notify(
# Ensure abort callback is a no-op after cancel
# and doesn't raise
abort_cb()
await client.disconnect(force=True)
# Ensure abort callback is a no-op after disconnect
# and does not raise
abort_cb()
@pytest.mark.asyncio