Speedup recorder test test_write_lock_db (#69578)

This commit is contained in:
Erik Montnemery 2022-04-07 15:36:58 +02:00 committed by GitHub
parent 075c362fd7
commit 4a7c978f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,7 +568,9 @@ async def test_write_lock_db(hass, tmp_path):
from sqlalchemy.exc import OperationalError
# Use file DB, in memory DB cannot do write locks.
config = {recorder.CONF_DB_URL: "sqlite:///" + str(tmp_path / "pytest.db")}
config = {
recorder.CONF_DB_URL: "sqlite:///" + str(tmp_path / "pytest.db?timeout=0.1")
}
await async_init_recorder_component(hass, config)
await hass.async_block_till_done()