1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Increase timeouts in test_gem_stream_ui.rb

* 0.1s is really short and fails in CI: #3622
https://github.com/rubygems/rubygems/commit/d8495ae1c1
This commit is contained in:
Benoit Daloze 2020-05-15 18:51:32 +02:00 committed by Hiroshi SHIBATA
parent 8d4b259408
commit b62e9c912d

View file

@ -5,7 +5,9 @@ require 'timeout'
class TestGemStreamUI < Gem::TestCase
SHORT_TIMEOUT = (defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?) ? 1.0 : 0.1 # increase timeout with MJIT for --jit-wait testing
# increase timeout with MJIT for --jit-wait testing
mjit_enabled = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
SHORT_TIMEOUT = RUBY_ENGINE == "ruby" && !mjit_enabled ? 0.1 : 1.0
module IsTty
attr_accessor :tty