Ensure Bluetooth notifies can safely be cancelled after disconnect (#741)

This commit is contained in:
J. Nick Koston 2023-11-26 15:29:51 -06:00 committed by GitHub
parent 150ce726da
commit f280efba8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
await cancel_cb()
@pytest.mark.asyncio