summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-24 19:50:41 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-11-24 19:50:42 -0800
commitc6b7b4f6f429d2cd3ea7a5ba38d2fc9f9037b91f (patch)
tree54a4f067117aa468a2e4f4ed47752c149d8a784d
parent26e3aea94f2897ae5079d9f9e5549c58de515a54 (diff)
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.
-rw-r--r--bootstraptest/test_ractor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 7101964a31..48857a9cf7 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -134,7 +134,7 @@ assert_equal '["r1", "r2"]', %q{
}
# 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{
30.times.map{|i|
test i
- }.all?('ok')
+ }
}
# Outgoing port of a ractor will be closed when the Ractor is terminated.