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

ruby-changes:63745

From: Takashi <ko1@a...>
Date: Wed, 25 Nov 2020 12:52:06 +0900 (JST)
Subject: [ruby-changes:63745] c6b7b4f6f4 (master): Report a more detailed situation of test_ractor.rb:137

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

From c6b7b4f6f429d2cd3ea7a5ba38d2fc9f9037b91f Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 24 Nov 2020 19:50:41 -0800
Subject: Report a more detailed situation of test_ractor.rb:137

This test has been very unstable. I'd like to instantly know whether
it's always failing or random when I look at a CI failure output.

diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 7101964..48857a9 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -134,7 +134,7 @@ assert_equal '["r1", "r2"]', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L134
 }
 
 # Ractor.select from multiple ractors.
-assert_equal 'true', %q{
+assert_equal 30.times.map { 'ok' }.to_s, %q{
   def test n
     rs = (1..n).map do |i|
       Ractor.new(i) do |i|
@@ -160,7 +160,7 @@ assert_equal 'true', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L160
 
   30.times.map{|i|
     test i
-  }.all?('ok')
+  }
 }
 
 # Outgoing port of a ractor will be closed when the Ractor is terminated.
-- 
cgit v0.10.2


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

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