check received counter in unit test

This commit is contained in:
Stefan Allius
2025-05-03 23:34:22 +02:00
parent c5f25b5728
commit 5623231aec
2 changed files with 3 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ async def test_ha_reconnect(config_mqtt_conn):
assert on_connect.is_set()
finally:
assert m.received == 2
await m.close()
@pytest.mark.asyncio