From 52fcb3a72446189448e96a465d8c91c469ac0ed2 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 15 Oct 2022 20:04:58 +1300 Subject: [PATCH] Add missing `#close` call to `test_dup_timeout` test. (#6560) --- test/ruby/test_io.rb | 2 ++ 1 file changed, 2 insertions(+) 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