Skip to content
Browse files

Increased open and read timeouts in Net::HTTP adapter specs

  • Loading branch information...
1 parent f8649e0 commit ad9ea7f5c927ec0363189b1609508e3b3e6e681d @bblimke committed Jan 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/acceptance/net_http/net_http_spec_helper.rb
View
2 spec/acceptance/net_http/net_http_spec_helper.rb
@@ -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|

0 comments on commit ad9ea7f

Please sign in to comment.
Something went wrong with that request. Please try again.