diff --git a/dist/t/spec/support/capybara.rb b/dist/t/spec/support/capybara.rb index 24b8ebc38828..751a377bf77f 100644 --- a/dist/t/spec/support/capybara.rb +++ b/dist/t/spec/support/capybara.rb @@ -24,7 +24,7 @@ # Set hostname begin - hostname = Socket.gethostbyname(Socket.gethostname).first + hostname = Addrinfo.getaddrinfo(Socket.gethostname).first rescue SocketError hostname = '' end