Adjust recorder tests according to #59087 (#59143)

This commit is contained in:
Erik Montnemery 2021-11-05 10:49:58 +01:00 committed by GitHub
parent 470b01e4ce
commit e5ee38d3b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,14 +296,14 @@ async def test_schema_migrate(hass, start_version):
await async_setup_component(
hass, "recorder", {"recorder": {"db_url": "sqlite://"}}
)
assert await recorder.async_migration_in_progress(hass) is True
assert recorder.util.async_migration_in_progress(hass) is True
migration_stall.set()
await hass.async_block_till_done()
migration_done.wait()
await async_wait_recording_done_without_instance(hass)
assert migration_version == models.SCHEMA_VERSION
assert setup_run.called
assert await recorder.async_migration_in_progress(hass) is not True
assert recorder.util.async_migration_in_progress(hass) is not True
def test_invalid_update():