From 8a83f4ae1fb41cfc0b60260564ca6af3a8d5310f Mon Sep 17 00:00:00 2001 From: Dani Donisa Date: Mon, 25 Mar 2024 16:56:03 +0100 Subject: [PATCH] Fix deprecation of Socket.gethostbyname It appears on the output of OpenQA runs, for example this one: https://openqa.opensuse.org/tests/4038465#step/rspec_webui_tests/11 --- dist/t/spec/support/capybara.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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