Skip to content

Commit

Permalink
Fix test start store
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed May 7, 2024
1 parent 7100c29 commit 9d4549e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import json
from asyncio import Event, sleep
from asyncio import Event, create_task, sleep
from datetime import datetime
from typing import Any

Expand Down Expand Up @@ -176,7 +176,8 @@ def rtc_create_SQLite_store(jp_serverapp):

async def _inner(type: str, path: str, content: str) -> DocumentRoom:
db = SQLiteYStore(path=f"{type}:{path}")
await db.start()
task = create_task(db.start())
await db.started.wait()

if type == "notebook":
doc = YNotebook()
Expand Down

0 comments on commit 9d4549e

Please sign in to comment.