We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2475fb commit 176ac23Copy full SHA for 176ac23
tests/unit/test_proxy.py
@@ -157,13 +157,10 @@ async def test_proxy_server_connect_fails(proxy_server):
157
# wait for server connection to be attempted
158
await connector.connect_called.wait()
159
160
- # The client connection should be closed by the proxy
161
- # Reading should return EOF
162
- data = await reader.read(100)
163
- assert data == b""
164
-
165
- await asyncio.sleep(1) # give proxy a chance to shut down
+ # Give the proxy a moment to react to the failed connect and shut down.
+ await asyncio.sleep(1)
166
+ # After a failed backend connect, the proxy should have cleaned up the socket.
167
assert not os.path.exists(socket_path)
168
169
0 commit comments