[ruby/uri] User assert_ractor for test case of Ractor
https://github.com/ruby/uri/commit/bbf8b44dba
This commit is contained in:
parent
1cf111774f
commit
d3d68aa842
@ -35,8 +35,10 @@ class TestCommon < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_ractor
|
def test_ractor
|
||||||
return unless defined?(Ractor)
|
return unless defined?(Ractor)
|
||||||
|
assert_ractor(<<~RUBY, require: 'uri')
|
||||||
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
|
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
|
||||||
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
|
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
|
||||||
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_register_scheme
|
def test_register_scheme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user