From 29df39c53617a8d368a27af33354a912c223efc7 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Tue, 7 May 2024 22:55:08 +0200 Subject: [PATCH] Backport #305 (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 943e2172..5f5a6a62 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 @@ -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()