Skip to content

Commit ef2003c

Browse files
kou1okadatitusfortner
authored andcommitted
[rb] values must be appended before freezing IGNORED_ERRORS.
Signed-off-by: Titus Fortner <titusfortner@gmail.com>
1 parent e3fbb4a commit ef2003c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rb/lib/selenium/webdriver/common/port_prober.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ def self.random
3838
port
3939
end
4040

41-
IGNORED_ERRORS = [Errno::EADDRNOTAVAIL].freeze
41+
IGNORED_ERRORS = [Errno::EADDRNOTAVAIL]
4242
IGNORED_ERRORS << Errno::EBADF if Platform.cygwin?
43+
IGNORED_ERRORS.freeze
4344

4445
def self.free?(port)
4546
Platform.interfaces.each do |host|

0 commit comments

Comments
 (0)