Skip to content

Commit

Permalink
Fix leak in Socket#connect spec
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored and andrykonchin committed Jan 6, 2025
1 parent 274f526 commit a6f67e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/socket/socket/connect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
skip "Off line"
end
}.should raise_error(IO::TimeoutError)
ensure
client.close
end
end
end

0 comments on commit a6f67e5

Please sign in to comment.