[前][次][番号順一覧][スレッド一覧]

ruby-changes:61655

From: Benoit <ko1@a...>
Date: Wed, 10 Jun 2020 21:35:05 +0900 (JST)
Subject: [ruby-changes:61655] b62e9c912d (master): [rubygems/rubygems] Increase timeouts in test_gem_stream_ui.rb

https://git.ruby-lang.org/ruby.git/commit/?id=b62e9c912d

From b62e9c912d744a1742a41be252855511f0a48032 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
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

diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index 33c2530..55907b0 100644
--- a/test/rubygems/test_gem_stream_ui.rb
+++ b/test/rubygems/test_gem_stream_ui.rb
@@ -5,7 +5,9 @@ require 'timeout' https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_stream_ui.rb#L5
 
 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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]