mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Speedup recorder test test_write_lock_db (#69578)
This commit is contained in:
parent
075c362fd7
commit
4a7c978f69
@ -568,7 +568,9 @@ async def test_write_lock_db(hass, tmp_path):
|
|||||||
from sqlalchemy.exc import OperationalError
|
from sqlalchemy.exc import OperationalError
|
||||||
|
|
||||||
# Use file DB, in memory DB cannot do write locks.
|
# 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 async_init_recorder_component(hass, config)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user