diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-13 13:12:52 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-13 13:12:52 +0900 |
| commit | 5dd969892f16fa4683edd9734564154411e3fdbc (patch) | |
| tree | 861cfcd8fccca0fd4e4c28854cb1b83c59863afb | |
| parent | c1fb25f6fc7427c25839493a6edd63199b794fdc (diff) | |
Wait for sleepr thread to finish not to leak
| -rw-r--r-- | test/fiber/test_thread.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiber/test_thread.rb b/test/fiber/test_thread.rb index 6fae266955..5e3cc6d0e1 100644 --- a/test/fiber/test_thread.rb +++ b/test/fiber/test_thread.rb @@ -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 |
