From d3d68aa842b2071a10d70460ad99b79d145b74d8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA 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 3d281758f4..5e30cda41d 100644 --- a/test/uri/test_common.rb +++ b/test/uri/test_common.rb @@ -35,8 +35,10 @@ class TestCommon < Test::Unit::TestCase 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.2.3