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

Add missing #close call to test_dup_timeout test. (#6560)

This commit is contained in:
Samuel Williams 2022-10-15 20:04:58 +13:00 committed by GitHub
parent 8a420670a2
commit 52fcb3a724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-10-15 16:05:21 +09:00
Merged-By: ioquatix <samuel@codeotaku.com>

View file

@ -1446,6 +1446,8 @@ class TestIO < Test::Unit::TestCase
r.timeout = 0.1 r.timeout = 0.1
r2 = r.dup r2 = r.dup
assert_equal(0.1, r2.timeout) assert_equal(0.1, r2.timeout)
ensure
r2&.close
end end
end end