mirror of
https://github.com/home-assistant/core.git
synced 2026-09-03 18:24:49 -05:00
Speedup recorder test test_write_lock_db (#69578)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user