summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-06-25 14:54:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-27 16:57:03 +0900
commitd3d68aa842b2071a10d70460ad99b79d145b74d8 (patch)
tree5ef02fa757ced51548aa4019b7c7ac99ecf27811
parent1cf111774f03c6d1ddba735cb8cc79483f16f699 (diff)
[ruby/uri] User assert_ractor for test case of Ractor
https://github.com/ruby/uri/commit/bbf8b44dba
-rw-r--r--test/uri/test_common.rb6
1 files 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