Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
use the API_TIMEOUT constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Sep 18, 2012
1 parent 6e9939d commit c9c31a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/fetcher.rb
Expand Up @@ -46,7 +46,7 @@ def initialize(remote_uri)
@remote_uri = remote_uri
@has_api = true # will be set to false if the rubygems index is ever fetched
@@connection ||= Net::HTTP::Persistent.new nil, :ENV
@@connection.read_timeout = 1
@@connection.read_timeout = API_TIMEOUT
end

# fetch a gem specification
Expand Down
2 changes: 1 addition & 1 deletion spec/install/gems/dependency_api_spec.rb
Expand Up @@ -183,7 +183,7 @@

# ensure server is started
require 'timeout'
Timeout.timeout(10) { sleep(0.1) until @t.status == "sleep" }
Timeout.timeout(15) { sleep(0.1) until @t.status == "sleep" }
end

after do
Expand Down

0 comments on commit c9c31a3

Please sign in to comment.