mirror of
https://github.com/simonw/datasette.git
synced 2026-05-28 12:56:18 +02:00
Close more connections in test suite
To try and avoid too many open files on macOS
This commit is contained in:
parent
2f7b120177
commit
3f8f97e92a
1 changed files with 6 additions and 1 deletions
|
|
@ -20,7 +20,12 @@ def ds_write(tmp_path_factory):
|
|||
ds = Datasette([db_path], immutables=[db_path_immutable])
|
||||
ds.root_enabled = True
|
||||
yield ds
|
||||
db.close()
|
||||
# Close both setup connections plus any Datasette-managed connections.
|
||||
db1.close()
|
||||
db2.close()
|
||||
for database in ds.databases.values():
|
||||
if not database.is_memory:
|
||||
database.close()
|
||||
|
||||
|
||||
def write_token(ds, actor_id="root", permissions=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue