ruby-changes:65450
From: Aditya <ko1@a...>
Date: Thu, 11 Mar 2021 17:25:15 +0900 (JST)
Subject: [ruby-changes:65450] 04ef602c28 (ruby_3_0): [rubygems/rubygems] Remote test to check require
https://git.ruby-lang.org/ruby.git/commit/?id=04ef602c28 From 04ef602c28aa175d7e03e802aa7db750632251cf Mon Sep 17 00:00:00 2001 From: Aditya Prakash <aditya.prakash132@g...> Date: Sat, 6 Mar 2021 08:41:50 +0530 Subject: [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 --- test/rubygems/test_gem_remote_fetcher.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index f08579c..b032f16 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -1000,12 +1000,6 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L1000 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' -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/