[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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user