diff options
-rw-r--r-- | test/objspace/test_ractor.rb | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -5,12 +5,10 @@ class TestObjSpaceRactor < Test::Unit::TestCase assert_ractor(<<~RUBY, require: 'objspace') ObjectSpace.trace_object_allocations do r = Ractor.new do - obj = 'a' * 1024 - Ractor.yield obj end - r.take - r.take end RUBY end @@ -30,7 +28,7 @@ class TestObjSpaceRactor < Test::Unit::TestCase end end - ractors.each(&:take) RUBY end @@ -51,7 +49,7 @@ class TestObjSpaceRactor < Test::Unit::TestCase end end - ractors.each(&:take) RUBY end end |