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

Fix leaked file descriptor in passwd test

This commit is contained in:
Peter Zhu 2021-03-23 15:35:44 +00:00 committed by Nobuyoshi Nakada
parent 061edf6b05
commit 850448abd5
Notes: git 2021-03-24 13:03:19 +09:00

View file

@ -171,6 +171,7 @@ class TestEtc < Test::Unit::TestCase
def test_ractor def test_ractor
return unless Etc.passwd # => skip test if no platform support return unless Etc.passwd # => skip test if no platform support
Etc.endpwent
assert_ractor(<<~RUBY, require: 'etc') assert_ractor(<<~RUBY, require: 'etc')
ractor = Ractor.new do ractor = Ractor.new do