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:
parent
8d4b259408
commit
b62e9c912d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue