Wait for sleepr thread to finish not to leak

This commit is contained in:
Nobuyoshi Nakada 2023-07-13 13:12:52 +09:00
parent c1fb25f6fc
commit 5dd969892f
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -39,7 +39,7 @@ class TestFiberThread < Test::Unit::TestCase
assert_predicate sleeper, :alive?
ensure
sleeper&.kill
sleeper&.kill&.join
end
def test_thread_join_implicit