mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use builtin TimeoutError [k-n] (#109681)
This commit is contained in:
@ -2480,7 +2480,7 @@ async def test_delayed_birth_message(
|
||||
await mqtt.async_subscribe(hass, "homeassistant/status", wait_birth)
|
||||
mqtt_client_mock.on_connect(None, None, 0, 0)
|
||||
await hass.async_block_till_done()
|
||||
with pytest.raises(asyncio.TimeoutError):
|
||||
with pytest.raises(TimeoutError):
|
||||
await asyncio.wait_for(birth.wait(), 0.2)
|
||||
assert not mqtt_client_mock.publish.called
|
||||
assert not birth.is_set()
|
||||
|
Reference in New Issue
Block a user