Fix CTKD failure introduced by Host RPA generation

This commit is contained in:
Josh Wu
2024-08-09 23:46:10 +08:00
parent 4433184048
commit c6b3deb8df
4 changed files with 114 additions and 35 deletions
+10
View File
@@ -536,6 +536,16 @@ async def test_cis_setup_failure():
await asyncio.wait_for(cis_create_task, _TIMEOUT)
# -----------------------------------------------------------------------------
@pytest.mark.asyncio
async def test_power_on_default_static_address_should_not_be_any():
devices = TwoDevices()
devices[0].static_address = devices[0].random_address = Address.ANY_RANDOM
await devices[0].power_on()
assert devices[0].static_address != Address.ANY_RANDOM
# -----------------------------------------------------------------------------
def test_gatt_services_with_gas():
device = Device(host=Host(None, None))