1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Close leaked file descriptors

This commit is contained in:
Nobuyoshi Nakada 2021-06-15 00:02:15 +09:00
parent 5dde13e5ce
commit 57eaa07ba6
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 5 additions and 0 deletions

View file

@ -59,6 +59,9 @@ class TestFiberSleep < Test::Unit::TestCase
Fiber.schedule do
sleep 0
end
ensure
scheduler.close
end
assert_raise(RuntimeError) do

View file

@ -56,6 +56,8 @@ class TestFiberThread < Test::Unit::TestCase
end
scheduler.run
ensure
scheduler.close
end
assert_raise(RuntimeError) do