summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAditya Prakash <aditya.prakash132@gmail.com>2021-03-06 08:41:50 +0530
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-03-08 13:47:35 +0900
commit7de349bb4996b0b8261f3af6734dd268160de96d (patch)
tree986182410c77e76b5f354e3735fe65c84d903003 /test
parent53468cc11147b0d285fc376fc546b677dad600ca (diff)
[rubygems/rubygems] Remote test to check require
This test was triggering require of `rubygems/core_ext/tcpsocket_init` which overrides TCPSocket.initialize globally. Requires don't get reset between test runs and it was making other test unreliable. Fixes timeout of test on ruby master https://github.com/rubygems/rubygems/commit/fdfe5c9691
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4143
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index 32600deee2..1c88e8d3e8 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -962,12 +962,6 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
end
end
- def test_tcpsocketext_require
- with_configured_fetcher(":ipv4_fallback_enabled: true") do |fetcher|
- refute require('rubygems/core_ext/tcpsocket_init')
- end
- end
-
def with_configured_fetcher(config_str = nil, &block)
if config_str
temp_conf = File.join @tempdir, '.gemrc'