mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix flaky test in Husqvarna Automower (#148515)
This commit is contained in:
parent
283d0d16c0
commit
2807f057de
@ -262,7 +262,7 @@ async def test_constant_polling(
|
||||
|
||||
test_values[TEST_MOWER_ID].battery.battery_percent = 77
|
||||
|
||||
freezer.tick(SCAN_INTERVAL - timedelta(seconds=1))
|
||||
freezer.tick(SCAN_INTERVAL - timedelta(seconds=10))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
@ -278,7 +278,7 @@ async def test_constant_polling(
|
||||
|
||||
test_values[TEST_MOWER_ID].work_areas[123456].progress = 50
|
||||
mock_automower_client.get_status.return_value = test_values
|
||||
freezer.tick(timedelta(seconds=4))
|
||||
freezer.tick(timedelta(seconds=10))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
mock_automower_client.get_status.assert_awaited()
|
||||
|
Loading…
x
Reference in New Issue
Block a user