diff options
author | Samuel Williams <[email protected]> | 2022-10-15 20:04:58 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-15 20:04:58 +1300 |
commit | 52fcb3a72446189448e96a465d8c91c469ac0ed2 (patch) | |
tree | c468229f32b6c98bcb62042cfacc30f2007137e8 /test/ruby/test_io.rb | |
parent | 8a420670a29a7c78c7201f678eb26528621bf39f (diff) |
Add missing `#close` call to `test_dup_timeout` test. (#6560)
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 989c4c8991..6313e11179 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1446,6 +1446,8 @@ class TestIO < Test::Unit::TestCase r.timeout = 0.1 r2 = r.dup assert_equal(0.1, r2.timeout) + ensure + r2&.close end end |