Skip to content

Commit

Permalink
test_http_server_helper: Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Oct 4, 2024
1 parent 5e5ff62 commit 50667dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin_helper/test_http_server_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit 50667dd

Please sign in to comment.