Skip to content

Commit

Permalink
Increased open and read timeouts in Net::HTTP adapter specs
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Jan 22, 2012
1 parent f8649e0 commit ad9ea7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/acceptance/net_http/net_http_spec_helper.rb
Expand Up @@ -24,6 +24,8 @@ def http_request(method, uri, options = {}, &block)
http.use_ssl = true
#1.9.1 has a bug with ssl_timeout
http.ssl_timeout = 20 unless RUBY_VERSION == "1.9.1"
http.open_timeout = 60
http.read_timeout = 60
end
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
response = http.start {|http|
Expand Down

0 comments on commit ad9ea7f

Please sign in to comment.