Skip to content

Commit

Permalink
Make it easier to override endpoint options like timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 20, 2024
1 parent d9e19cb commit e8fbe41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sus/fixtures/async/http/server_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ def bound_url
bound_urls.first
end

def endpoint_options
{reuse_port: true, protocol: protocol}
end

def endpoint
::Async::HTTP::Endpoint.parse(url, reuse_port: true, protocol: protocol)
::Async::HTTP::Endpoint.parse(url, **endpoint_options)
end

def retries
Expand Down

0 comments on commit e8fbe41

Please sign in to comment.