mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 12:55:44 +03:00
Fix tests.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
7ebbb499e0
commit
71b2b73881
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ private slots:
|
|||
auto oldRemoteState = fakeFolder.currentRemoteState();
|
||||
|
||||
QString errorFolder = "dav/files/admin/B";
|
||||
QString fatalErrorPrefix = "Server replied with an error while reading directory 'B' : ";
|
||||
QString fatalErrorPrefix = "Server replied with an error while reading directory \"B\" : ";
|
||||
fakeFolder.setServerOverride([&](QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *)
|
||||
-> QNetworkReply *{
|
||||
if (req.attribute(QNetworkRequest::CustomVerbAttribute) == "PROPFIND" && req.url().path().endsWith(errorFolder)) {
|
||||
|
@ -134,7 +134,7 @@ private slots:
|
|||
// Check the same discovery error on the sync root
|
||||
//
|
||||
errorFolder = "dav/files/admin/";
|
||||
fatalErrorPrefix = "Server replied with an error while reading directory '' : ";
|
||||
fatalErrorPrefix = "Server replied with an error while reading directory \"\" : ";
|
||||
errorSpy.clear();
|
||||
QVERIFY(!fakeFolder.syncOnce());
|
||||
QCOMPARE(errorSpy.size(), 1);
|
||||
|
|
Loading…
Reference in a new issue