Skip to content

Commit edbc869

Browse files
committed
Fix test to use #close_write.
1 parent 7d0d58c commit edbc869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async/http/faraday/adapter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def get_response(url = bound_url, path = '/index', adapter_options: {})
185185
body.write("chunk#{i}")
186186
end
187187
ensure
188-
body.close
188+
body.close_write
189189
end
190190

191191
Protocol::HTTP::Response[200, {}, body]

0 commit comments

Comments
 (0)