Adjust indent [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-05-04 01:15:09 +09:00
parent 97654bee49
commit 91485d7dc6
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1,17 +1,17 @@
require "test/unit" require "test/unit"
class TestObjSpaceRactor < Test::Unit::TestCase class TestObjSpaceRactor < Test::Unit::TestCase
def test_tracing_does_not_crash def test_tracing_does_not_crash
assert_ractor(<<~RUBY, require: 'objspace') assert_ractor(<<~RUBY, require: 'objspace')
ObjectSpace.trace_object_allocations do ObjectSpace.trace_object_allocations do
r = Ractor.new do r = Ractor.new do
obj = 'a' * 1024 obj = 'a' * 1024
Ractor.yield obj Ractor.yield obj
end end
r.take r.take
r.take r.take
end end
RUBY RUBY
end end
end end