summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems')
-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