1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Avoid using a class variable in socket specs

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2017-05-16 12:29:44 +00:00
parent 50349fd5b7
commit e838fa81bd

View file

@ -35,7 +35,7 @@ module SocketSpecs
end
def self.port
@@_port ||= find_available_port
@port ||= find_available_port
end
def self.str_port