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:
parent
1cf111774f
commit
d3d68aa842
1 changed files with 4 additions and 2 deletions
|
@ -35,8 +35,10 @@ class TestCommon < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_ractor
|
def test_ractor
|
||||||
return unless defined?(Ractor)
|
return unless defined?(Ractor)
|
||||||
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
|
assert_ractor(<<~RUBY, require: 'uri')
|
||||||
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
|
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
|
||||||
|
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
|
||||||
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_register_scheme
|
def test_register_scheme
|
||||||
|
|
Loading…
Add table
Reference in a new issue