diff --git a/test/pushnotificationstestutils.cpp b/test/pushnotificationstestutils.cpp index 389d41dd7f542..7df542ec45b1e 100644 --- a/test/pushnotificationstestutils.cpp +++ b/test/pushnotificationstestutils.cpp @@ -13,7 +13,7 @@ FakeWebSocketServer::FakeWebSocketServer(quint16 port, QObject *parent) : QObject(parent) , _webSocketServer(new QWebSocketServer(QStringLiteral("Fake Server"), QWebSocketServer::NonSecureMode, this)) { - if (!_webSocketServer->listen(QHostAddress::Any, port)) { + if (!_webSocketServer->listen(QHostAddress::LocalHost, port)) { Q_UNREACHABLE(); } connect(_webSocketServer, &QWebSocketServer::newConnection, this, &FakeWebSocketServer::onNewConnection); diff --git a/test/testsetuserstatusdialog.cpp b/test/testsetuserstatusdialog.cpp index 0352216234f99..49487fccc15c4 100644 --- a/test/testsetuserstatusdialog.cpp +++ b/test/testsetuserstatusdialog.cpp @@ -187,7 +187,7 @@ class TestSetUserStatusDialog : public QObject private slots: void testCtor_fetchStatusAndPredefinedStatuses() { - const QDateTime currentDateTime(QDateTime::currentDateTime()); + const QDateTime currentDateTime(QDateTime::currentDateTimeUtc()); const QString userStatusId("fake-id"); const QString userStatusMessage("Some status"); diff --git a/test/testsyncconflictsmodel.cpp b/test/testsyncconflictsmodel.cpp index de1596cc38e5f..7fc49fcfd5aa6 100644 --- a/test/testsyncconflictsmodel.cpp +++ b/test/testsyncconflictsmodel.cpp @@ -61,13 +61,13 @@ private slots: FolderMan fm; auto account = Account::create(); - auto url = QUrl{"http://example.de"}; + auto url = QUrl{"http://example.com"}; auto cred = new HttpCredentialsTest("testuser", "secret"); account->setCredentials(cred); account->setUrl(url); url.setUserName(cred->user()); - auto newAccountState{AccountStatePtr{ new AccountState{account}}}; + auto newAccountState{AccountStatePtr{ new FakeAccountState{account}}}; auto folderman = FolderMan::instance(); QCOMPARE(folderman, &fm);