Fix leak in Socket#connect spec

* Found by 3501841252
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