Replies: 1 comment
-
Two things to check:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on an app based on fastapi. Up until now the app only supported HTTP calls and I am now trying to add a websocket call which is based on a different HTTP call, both calls use the same dependencies.
The HTTP call works fine in testing but for some reason the websocket call is constantly getting this error in unit tests:
I am guessing the test client is using a different loop than the app which results in this error for some reason (?)
Any way I can set the loop used by the test client? or any other means to fix this issue?
here is my test code:
Any help here would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions