Skip to content

Commit fe2d797

Browse files
krassowskiandrii-i
authored andcommitted
Workaround shutdown issue with aiosqlite for now (jupyterlab#278)
* Workaround shutdown issue with `aiosqlite` for now * Also wait to stop in `test_room_concurrent_initialization` * Try to delete jupyter_server_fileid early
1 parent 460d17f commit fe2d797

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_documents.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ async def cleanup(jp_serverapp):
4949
del jp_serverapp.web_app.settings["file_id_manager"]
5050

5151

52+
async def cleanup(jp_serverapp):
53+
# workaround for a shutdown issue of aiosqlite, see
54+
# https://github.com/jupyterlab/jupyter-collaboration/issues/252
55+
await jp_serverapp.web_app.settings["jupyter_collaboration"].stop_extension()
56+
# workaround `jupyter_server_fileid` manager accessing database on GC
57+
del jp_serverapp.web_app.settings["file_id_manager"]
58+
59+
5260
async def test_room_concurrent_initialization(
5361
jp_serverapp,
5462
rtc_create_file,

0 commit comments

Comments
 (0)