You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILED tests/asgi/test_configuration.py::test_init_wait_timeout_graphql_transport_ws - RuntimeError: Cannot call "send" once a close message has been sent.
However, I don't think the failing test is caused by Starlette changes. It could just reveal an issue that existed before. I tried to run https://github.com/mirumee/ariadne-graphql-chat-example with the 0 timeout, I could see this RuntimeError as well. I double-checked it for both older and newest Starlette.
Let's consider the following code:
which is used in the Ariadne's test suite.
After the changes of the test client implementation introduced in Starlette 0.45.1 (https://github.com/encode/starlette/releases/tag/0.45.1), the following test fails every time:
However, I don't think the failing test is caused by Starlette changes. It could just reveal an issue that existed before. I tried to run https://github.com/mirumee/ariadne-graphql-chat-example with the 0 timeout, I could see this RuntimeError as well. I double-checked it for both older and newest Starlette.
The problematic code lives in
ariadne/ariadne/asgi/handlers/graphql_transport_ws.py
Lines 108 to 113 in 9476a43
accept
is called.The text was updated successfully, but these errors were encountered: