summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2024-12-31 15:34:32 +0100
committerBenoit Daloze <eregontp@gmail.com>2024-12-31 16:19:18 +0100
commit341503d1a3a95253ddacdd3bd1c4a7dcdbbe49f2 (patch)
tree4caa7bd3d980c9bc85d462c8c2235b90af6602ce
parente43d9cbfcbc105889ccd9e1e8b2b3a7d4c4023d9 (diff)
Fix leak in Socket#connect spec
* Found by https://github.com/ruby/ruby/actions/runs/12560692556/job/35018412527?pr=12492
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12492
-rw-r--r--spec/ruby/library/socket/socket/connect_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/socket/connect_spec.rb b/spec/ruby/library/socket/socket/connect_spec.rb
index ccace9ff6d..130379ce2b 100644
--- a/spec/ruby/library/socket/socket/connect_spec.rb
+++ b/spec/ruby/library/socket/socket/connect_spec.rb
@@ -71,6 +71,8 @@ describe 'Socket#connect' do
skip "Off line"
end
}.should raise_error(IO::TimeoutError)
+ ensure
+ client.close
end
end
end