mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
The mock_dispatcher fixture's fake_subscribe recorded event handlers but never called them, causing asyncio.wait() to block for the full DEFAULT_TIMEOUT (15s) on every test that passes expected_events to send(). With 28 affected tests, the suite wasted ~8 minutes on dead waits and required an undocumented pytest-timeout plugin to complete. Add call_soon to the default fake_subscribe so futures resolve on the next event loop iteration, matching the pattern already used by setup_event_response(). Override with a non-resolving mock in test_send_timeout to preserve timeout path coverage. Suite now completes in <1 second with no --timeout flag. |
||
|---|---|---|
| .. | ||
| test_commands.py | ||
| test_events.py | ||
| test_lpp_parsing.py | ||
| test_path_discovery_response.py | ||
| test_private_key_export.py | ||
| test_reader.py | ||
| test_serial_connection.py | ||