mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_gem_remote_fetcher.rb: give up testing MJIT here
because we can't configure timeout for remote fetcher. We've sometimes hit timeout.5bf5213c18
5be3d71956
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5335ce0e06
commit
d12bcfc186
1 changed files with 4 additions and 0 deletions
|
@ -124,9 +124,13 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
|
|||
Gem::RemoteFetcher.fetcher = nil
|
||||
@stub_ui = Gem::MockGemUi.new
|
||||
@fetcher = Gem::RemoteFetcher.fetcher
|
||||
|
||||
RubyVM::MJIT.pause(wait: false) if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # sometimes timeout is too short for --jit-wait, but remote_fetcher can't configure timeout
|
||||
end
|
||||
|
||||
def teardown
|
||||
RubyVM::MJIT.resume if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # enable testing again
|
||||
|
||||
@fetcher.close_all
|
||||
self.class.stop_servers
|
||||
super
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue