Fix flux_led set time test

If this test was run at the wrong time of the day
it would not have been long enough for the set time
to fire since it only happens at 2:40:30 in the morning
local time
This commit is contained in:
J. Nick Koston 2023-03-11 09:36:24 -10:00
parent 56454c8580
commit 3241912eff
No known key found for this signature in database

View file

@ -236,7 +236,7 @@ async def test_time_sync_startup_and_next_day(hass: HomeAssistant) -> None:
assert config_entry.state == ConfigEntryState.LOADED
assert len(bulb.async_set_time.mock_calls) == 1
async_fire_time_changed(hass, utcnow() + timedelta(hours=24))
async_fire_time_changed(hass, utcnow() + timedelta(hours=48))
await hass.async_block_till_done()
assert len(bulb.async_set_time.mock_calls) == 2