From edbc86986ddb3a89a47ea71dce5d3bfb478c7a24 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 11 Sep 2024 11:42:57 +1200 Subject: [PATCH] Fix test to use `#close_write`. --- test/async/http/faraday/adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async/http/faraday/adapter.rb b/test/async/http/faraday/adapter.rb index 7e5e85f..952d9a3 100644 --- a/test/async/http/faraday/adapter.rb +++ b/test/async/http/faraday/adapter.rb @@ -185,7 +185,7 @@ def get_response(url = bound_url, path = '/index', adapter_options: {}) body.write("chunk#{i}") end ensure - body.close + body.close_write end Protocol::HTTP::Response[200, {}, body]