We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ae5a9 commit 9443325Copy full SHA for 9443325
spec/async/http/proxy_spec.rb
@@ -180,11 +180,11 @@
180
response = proxy_client.get("/index")
181
expect(response).to_not be_failure
182
183
- # If a connection is persistent, it will go back into the pool when the response is closed.
184
- expect(response.read).to_not be_empty
185
- expect(response.body).to be_nil
+ # The response would be a redirect:
+ expect(response).to be_redirection
+ response.finish
186
187
- # The proxy.connnect response is not being released correctly - after pipe is done.
+ # The proxy.connnect response is not being released correctly - after pipe is done:
188
expect(proxy_client.pool).to_not be_empty
189
proxy_client.close
190
expect(proxy_client.pool).to be_empty
0 commit comments