From af8aa1383b2322757b0299cd0876ac4ea476d0f5 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Wed, 21 Aug 2024 17:30:43 +0900 Subject: [PATCH] test_http_server_helper: Fix test Signed-off-by: Shizuo Fujita --- test/plugin_helper/test_http_server_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/plugin_helper/test_http_server_helper.rb b/test/plugin_helper/test_http_server_helper.rb index 905526c207..24312a9843 100644 --- a/test/plugin_helper/test_http_server_helper.rb +++ b/test/plugin_helper/test_http_server_helper.rb @@ -132,7 +132,7 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr resp = nil error = nil - Async do + Sync do Console.logger = Fluent::Log::ConsoleAdapter.wrap(NULL_LOGGER) begin response = yield(client) @@ -141,7 +141,7 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr end if response - resp = Response.new(response.status.to_s, response.body.read, response.headers) + resp = Response.new(response.status.to_s, response.read, response.headers) end end