Skip to content

Commit

Permalink
Add missing #close call to test_dup_timeout test. (#6560)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 15, 2022
1 parent 8a42067 commit 52fcb3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ruby/test_io.rb
Expand Up @@ -1446,6 +1446,8 @@ def test_dup_timeout
r.timeout = 0.1
r2 = r.dup
assert_equal(0.1, r2.timeout)
ensure
r2&.close
end
end

Expand Down

0 comments on commit 52fcb3a

Please sign in to comment.