Skip to content

Commit

Permalink
Fix test_fork_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 29, 2024
1 parent 7a5613f commit 47d71f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ def _on_root_change(topic: str, event: Any) -> None:
file_id = data["fileId"]
root_roomid = f"text:file:{file_id}"

async with await rtc_connect_doc_client("text", "file", path) as ws, WebsocketProvider(
root_ydoc.ydoc, ws
):
websocket, room_name = await rtc_connect_doc_client("text", "file", path)
async with websocket as ws, WebsocketProvider(root_ydoc.ydoc, Websocket(ws, room_name)):
await root_connect_event.wait()

resp = await rtc_create_fork_client(root_roomid, False, "my fork0", "is awesome0")
Expand Down

0 comments on commit 47d71f8

Please sign in to comment.