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
My project spins a websocket server and multiple websocket clients are expected to connect to it. The server and each client run on their own python process.
I wonder if it's possible to create multiple instances of aiohttp_client connecting to the same server in a single async test_xxx(...) test.
Although it might be possible to test using multiprocessing, it feels like a lot of boilerplate and tricky IPC that would add a lot of unnecessary complexity.
Frankly, I have not even tried it yet. Wanted to ask before investing any effort.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
My project spins a websocket server and multiple websocket clients are expected to connect to it. The server and each client run on their own
python
process.I wonder if it's possible to create multiple instances of
aiohttp_client
connecting to the same server in a singleasync test_xxx(...)
test.Although it might be possible to test using
multiprocessing
, it feels like a lot of boilerplate and tricky IPC that would add a lot of unnecessary complexity.Frankly, I have not even tried it yet. Wanted to ask before investing any effort.
Beta Was this translation helpful? Give feedback.
All reactions