mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 02:24:51 -05:00
Fix flaky concord232 polling tests (#179784)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
e1a7b8780e
commit
e149a59c2d
@@ -237,7 +237,7 @@ async def test_update_state_armed(
|
||||
# Trigger update
|
||||
freezer.tick(10)
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
state = hass.states.get("alarm_control_panel.test_alarm")
|
||||
assert state.state == expected_state
|
||||
@@ -259,7 +259,7 @@ async def test_update_connection_error(
|
||||
|
||||
freezer.tick(10)
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
assert "Unable to connect to" in caplog.text
|
||||
|
||||
|
||||
@@ -153,11 +153,11 @@ async def test_zone_update_refresh(
|
||||
|
||||
freezer.tick(datetime.timedelta(seconds=10))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
freezer.tick(datetime.timedelta(seconds=10))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
state = hass.states.get("binary_sensor.zone_1")
|
||||
assert state.state == "on"
|
||||
|
||||
Reference in New Issue
Block a user