Fix metoffice test_forecast_subscription raises key error (#103598)

Allow test time change to be processed
pull/103614/head
Jan Bouwhuis 2023-11-07 22:11:02 +01:00 committed by GitHub
parent 0d67557106
commit 624837912c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -559,6 +559,7 @@ async def test_forecast_subscription(
assert forecast1 == snapshot
freezer.tick(DEFAULT_SCAN_INTERVAL + timedelta(seconds=1))
async_fire_time_changed(hass)
await hass.async_block_till_done()
msg = await client.receive_json()
@ -575,5 +576,8 @@ async def test_forecast_subscription(
"subscription": subscription_id,
}
)
freezer.tick(timedelta(seconds=1))
async_fire_time_changed(hass)
await hass.async_block_till_done()
msg = await client.receive_json()
assert msg["success"]