Fix leak in Socket#connect spec

* Found by https://github.com/ruby/ruby/actions/runs/12560692556/job/35018412527?pr=12492
This commit is contained in:
Benoit Daloze 2024-12-31 15:34:32 +01:00
parent e43d9cbfcb
commit 341503d1a3
Notes: git 2024-12-31 15:19:37 +00:00

View File

@ -71,6 +71,8 @@ describe 'Socket#connect' do
skip "Off line"
end
}.should raise_error(IO::TimeoutError)
ensure
client.close
end
end
end