summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_remote_fetcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_remote_fetcher.rb')
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index 7e08a8c663..883e1bd8e4 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -77,30 +77,6 @@ gems:
DIR = File.expand_path(File.dirname(__FILE__))
- module RemoteFetcherCleanup
- refine Gem::RemoteFetcher do
- def close_all
- @pools.each_value {|pool| pool.close_all}
- end
- end
- refine Gem::Request::ConnectionPools do
- def close_all
- @pools.each_value {|pool| pool.close_all}
- end
- end
- refine Gem::Request::HTTPPool do
- def close_all
- until @queue.empty?
- if connection = @queue.pop(true) and connection.started?
- connection.finish
- end
- end
- @queue.push(nil)
- end
- end
- end
- using RemoteFetcherCleanup
-
def setup
@proxies = %w[http_proxy HTTP_PROXY http_proxy_user HTTP_PROXY_USER http_proxy_pass HTTP_PROXY_PASS no_proxy NO_PROXY]
@old_proxies = @proxies.map {|k| ENV[k] }