Skip to content

Commit

Permalink
Merge pull request #6596 from pyromaniac2k/master
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
mgallien authored Apr 22, 2024
2 parents 1cb798b + a5a3132 commit b7dd6ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/pushnotificationstestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/testsetuserstatusdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions test/testsyncconflictsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b7dd6ff

Please sign in to comment.