From: Claudio Cambra Date: Sat, 5 Nov 2022 12:20:13 +0000 (+0100) Subject: Fix bad remote path in sharetestutils fakefolder, which led to failed FakePropfindRep... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~99^2^2~68^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=294ec8a2b67000cae37731a323b9ab8aa0de4f76;p=nextcloud-desktop.git Fix bad remote path in sharetestutils fakefolder, which led to failed FakePropfindReply being provided in tests Signed-off-by: Claudio Cambra --- diff --git a/test/sharetestutils.cpp b/test/sharetestutils.cpp index 7f481a612..249d7b1df 100644 --- a/test/sharetestutils.cpp +++ b/test/sharetestutils.cpp @@ -143,7 +143,9 @@ void ShareTestHelper::setup() const auto folderMan = FolderMan::instance(); QCOMPARE(folderMan, &fm); - QVERIFY(folderMan->addFolder(accountState.data(), folderDefinition(fakeFolder.localPath()))); + auto folderDef = folderDefinition(fakeFolder.localPath()); + folderDef.targetPath = QString(); + QVERIFY(folderMan->addFolder(accountState.data(), folderDef)); const auto folder = FolderMan::instance()->folder(fakeFolder.localPath()); QVERIFY(folder); QVERIFY(fakeFolder.syncOnce());