Ensure Bluetooth notifies can safely be cancelled after disconnect (#741)
This commit is contained in:
parent
150ce726da
commit
f280efba8a
|
@ -1214,6 +1214,10 @@ async def test_bluetooth_gatt_start_notify(
|
||||||
# Ensure abort callback is a no-op after cancel
|
# Ensure abort callback is a no-op after cancel
|
||||||
# and doesn't raise
|
# and doesn't raise
|
||||||
abort_cb()
|
abort_cb()
|
||||||
|
await client.disconnect(force=True)
|
||||||
|
# Ensure abort callback is a no-op after disconnect
|
||||||
|
# and does not raise
|
||||||
|
await cancel_cb()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|
Loading…
Reference in New Issue