Skip to content

Commit

Permalink
Backport #305 (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 707fd0f commit 29df39c
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 @@ -177,7 +177,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 29df39c

Please sign in to comment.