Skip to content

Commit

Permalink
Fix deprecation of Socket.gethostbyname
Browse files Browse the repository at this point in the history
It appears on the output of OpenQA runs, for example this one:

https://openqa.opensuse.org/tests/4038465#step/rspec_webui_tests/11
  • Loading branch information
danidoni committed Mar 25, 2024
1 parent e382458 commit 2097a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/t/spec/support/capybara.rb
Expand Up @@ -24,7 +24,7 @@

# Set hostname
begin
hostname = Socket.gethostbyname(Socket.gethostname).first
hostname = Addrinfo.getaddrinfo(Socket.gethostname).first
rescue SocketError
hostname = ''
end
Expand Down

0 comments on commit 2097a54

Please sign in to comment.