Close leaked file descriptors
This commit is contained in:
parent
5dde13e5ce
commit
57eaa07ba6
@ -59,6 +59,9 @@ class TestFiberSleep < Test::Unit::TestCase
|
||||
Fiber.schedule do
|
||||
sleep 0
|
||||
end
|
||||
|
||||
ensure
|
||||
scheduler.close
|
||||
end
|
||||
|
||||
assert_raise(RuntimeError) do
|
||||
|
@ -56,6 +56,8 @@ class TestFiberThread < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
scheduler.run
|
||||
ensure
|
||||
scheduler.close
|
||||
end
|
||||
|
||||
assert_raise(RuntimeError) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user