aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-05-15 18:51:32 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-10 21:33:14 +0900
commitb62e9c912d744a1742a41be252855511f0a48032 (patch)
tree826eff1006d261f2f64841e58c7a0f1ff77eb52e
parent8d4b2594086d753bc3e7e5dd16ec827bc360be58 (diff)
downloadruby-b62e9c912d744a1742a41be252855511f0a48032.tar.gz
[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
-rw-r--r--test/rubygems/test_gem_stream_ui.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index 33c25308b5..55907b0132 100644
--- a/test/rubygems/test_gem_stream_ui.rb
+++ b/test/rubygems/test_gem_stream_ui.rb
@@ -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