From 3c2041dfd5b769d415d8b98828b74614aa1839cf Mon Sep 17 00:00:00 2001 From: David Brochart Date: Tue, 7 May 2024 14:54:58 +0200 Subject: [PATCH] Fix test start store --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index f47416f5..f9df43c2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 @@ -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()