Skip subscribe cooldowns in slow MQTT tests (#183684)

This commit is contained in:
Erwin Douna
2026-09-30 09:05:30 +02:00
committed by GitHub
parent 2e547c3519
commit dc04da4941
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -454,6 +454,9 @@ async def test_subscribe_and_resubscribe(
mqtt_client_mock.unsubscribe.assert_called_once_with(["test-topic"])
@patch("homeassistant.components.mqtt.client.INITIAL_SUBSCRIBE_COOLDOWN", 0.0)
@patch("homeassistant.components.mqtt.client.SUBSCRIBE_COOLDOWN", 0.0)
@patch("homeassistant.components.mqtt.client.UNSUBSCRIBE_COOLDOWN", 0.0)
async def test_subscribe_topic_non_async(
hass: HomeAssistant,
mock_debouncer: asyncio.Event,
+2
View File
@@ -802,6 +802,8 @@ async def test_receiving_message_with_non_utf8_topic_gets_logged(
@pytest.mark.usefixtures("mqtt_client_mock")
@patch("homeassistant.components.mqtt.client.INITIAL_SUBSCRIBE_COOLDOWN", 0.0)
@patch("homeassistant.components.mqtt.client.SUBSCRIBE_COOLDOWN", 0.0)
async def test_reload_entry_with_restored_subscriptions(
hass: HomeAssistant,
mock_debouncer: asyncio.Event,