mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Workaround for 'too many open files' error, refs #1843
This commit is contained in:
parent
fdf9891c3f
commit
6887c12ea3
1 changed files with 3 additions and 0 deletions
|
|
@ -163,6 +163,9 @@ def make_app_client(
|
|||
crossdb=crossdb,
|
||||
)
|
||||
yield TestClient(ds)
|
||||
# Close the connection to avoid "too many open files" errors
|
||||
conn.close()
|
||||
os.remove(filepath)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue