summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-27 12:18:35 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commitb5a0db8be0086f2d245fd77fd48f89e359d71312 (patch)
tree0fd16fd9d9f1028f9d39805325b33962387b892b
parenta433b82f13f83a83c0522e604ffe42f3f7f3b64d (diff)
[rubygems/rubygems] Remove unnecessary code from remote fetcher tests
This code is not necessary and has the bad side effect of causing test failures in cascade once a single test inside the file fails. See https://github.com/rubygems/rubygems/runs/538978838 for an example. https://github.com/rubygems/rubygems/commit/2291d32915
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3092
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index c72bffb29b..c8c3c2f842 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -108,10 +108,7 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
@server_uri = base_server_uri + "/yaml"
@server_z_uri = base_server_uri + "/yaml.Z"
- # REFACTOR: copied from test_gem_dependency_installer.rb
- @gems_dir = File.join @tempdir, 'gems'
@cache_dir = File.join @gemhome, "cache"
- FileUtils.mkdir @gems_dir
# TODO: why does the remote fetcher need it written to disk?
@a1, @a1_gem = util_gem 'a', '1' do |s|