1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/uri] User assert_ractor for test case of Ractor

https://github.com/ruby/uri/commit/bbf8b44dba
This commit is contained in:
Hiroshi SHIBATA 2021-06-25 14:54:12 +09:00
parent 1cf111774f
commit d3d68aa842
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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