diff --git a/setup.cfg b/setup.cfg index 129ae51f..6065cc67 100644 --- a/setup.cfg +++ b/setup.cfg @@ -81,7 +81,7 @@ console_scripts = build = build >= 0.7 test = - pytest >= 8.0 + pytest >= 8.2 pytest-asyncio >= 0.23.5 pytest-html >= 3.2.0 coverage >= 6.4 @@ -89,9 +89,9 @@ development = black == 24.3 grpcio-tools >= 1.62.1 invoke >= 1.7.3 - mypy == 1.8.0 + mypy == 1.10.0 nox >= 2022 - pylint == 2.15.8 + pylint == 3.1.0 pyyaml >= 6.0 types-appdirs >= 1.4.3 types-invoke >= 1.7.3 diff --git a/tests/device_test.py b/tests/device_test.py index 5d872826..4fc63720 100644 --- a/tests/device_test.py +++ b/tests/device_test.py @@ -214,6 +214,12 @@ async def test_device_connect_parallel(): d1.host.set_packet_sink(Sink(d1_flow())) d2.host.set_packet_sink(Sink(d2_flow())) + d1_accept_task = asyncio.create_task(d1.accept(peer_address=d0.public_address)) + d2_accept_task = asyncio.create_task(d2.accept()) + + # Ensure that the accept tasks have started. + await async_barrier() + [c01, c02, a10, a20] = await asyncio.gather( *[ asyncio.create_task( @@ -222,8 +228,8 @@ async def test_device_connect_parallel(): asyncio.create_task( d0.connect(d2.public_address, transport=BT_BR_EDR_TRANSPORT) ), - asyncio.create_task(d1.accept(peer_address=d0.public_address)), - asyncio.create_task(d2.accept()), + d1_accept_task, + d2_accept_task, ] )