mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 22:38:02 -04:00
Skip subscribe cooldowns in slow MQTT tests (#183684)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user