From b62e9c912d744a1742a41be252855511f0a48032 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 15 May 2020 18:51:32 +0200 Subject: [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 --- test/rubygems/test_gem_stream_ui.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3