mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 12:55:44 +03:00
commit
b7dd6ff748
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue