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:
parent
50349fd5b7
commit
e838fa81bd
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module SocketSpecs
|
|||
end
|
||||
|
||||
def self.port
|
||||
@@_port ||= find_available_port
|
||||
@port ||= find_available_port
|
||||
end
|
||||
|
||||
def self.str_port
|
||||
|
|
Loading…
Reference in a new issue