spec/support/http_helpers.rb in pubsubstub-0.1.3 vs spec/support/http_helpers.rb in pubsubstub-0.2.0

- old
+ new

@@ -4,10 +4,10 @@ def async_get(uri, headers = {}, retries: 10, &block) uri = URI(uri.to_s) queue = Queue.new Thread.start do begin - Net::HTTP.start(uri.host, uri.port) do |http| + Net::HTTP.start(uri.host, uri.port, open_timeout: 10) do |http| request = Net::HTTP::Get.new uri.request_uri headers.each do |name, value| request.add_field(name, value) end