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:
parent
8a420670a2
commit
52fcb3a724
Notes:
git
2022-10-15 16:05:21 +09:00
Merged-By: ioquatix <samuel@codeotaku.com>
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue