Non-HTTP socket traffic blows up when HTTPretty is enabled
Non-HTTP socket traffic blows up when HTTPretty is enabled: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). I'm using HTTPretty to mock HTTP responses in my tests, but the code under test also opens a regular TCP connection to a non-HTTP service (in my case Redis…
The task
I'm using HTTPretty to mock HTTP responses in my tests, but the code under test also opens a regular TCP connection to a non-HTTP service (in my case Redis, but it would happen with anything that's not on ports 80/443). As soon as that code path calls `send()` or `recv()` on its socket, the test explodes with:
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.