mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Try shutting down executor in tests to free up thread local SQLite connections, refs #1843
This commit is contained in:
parent
c23fa850e7
commit
c36a74ece1
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ def make_app_client(
|
||||||
# Close the connection to avoid "too many open files" errors
|
# Close the connection to avoid "too many open files" errors
|
||||||
conn.close()
|
conn.close()
|
||||||
os.remove(filepath)
|
os.remove(filepath)
|
||||||
|
ds.executor.shutdown()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue