diff --git a/tests/features/features-run.cpp b/tests/features/features-run.cpp --- a/tests/features/features-run.cpp +++ b/tests/features/features-run.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -55,9 +56,9 @@ timer.start(); QTcpSocket socket; - socket.connectToHost(QStringLiteral("localhost"), 3902); + socket.connectToHost(QHostAddress::LocalHost, 3902); while (!socket.waitForConnected() && !timer.hasExpired(timeout)) { - socket.connectToHost(QStringLiteral("localhost"), 3902); + socket.connectToHost(QHostAddress::LocalHost, 3902); } return socket.state() == QTcpSocket::ConnectedState;