ruby-changes:66907
From: Hiroshi <ko1@a...>
Date: Tue, 27 Jul 2021 17:01:52 +0900 (JST)
Subject: [ruby-changes:66907] d3d68aa842 (master): [ruby/uri] User assert_ractor for test case of Ractor
https://git.ruby-lang.org/ruby.git/commit/?id=d3d68aa842 From d3d68aa842b2071a10d70460ad99b79d145b74d8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Fri, 25 Jun 2021 14:54:12 +0900 Subject: [ruby/uri] User assert_ractor for test case of Ractor https://github.com/ruby/uri/commit/bbf8b44dba --- test/uri/test_common.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb index 3d28175..5e30cda 100644 --- a/test/uri/test_common.rb +++ b/test/uri/test_common.rb @@ -35,8 +35,10 @@ class TestCommon < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/uri/test_common.rb#L35 def test_ractor return unless defined?(Ractor) - r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect } - assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take) + assert_ractor(<<~RUBY, require: 'uri') + r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect } + assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take) + RUBY end def test_register_scheme -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/