Fix bad remote path in sharetestutils fakefolder, which led to failed FakePropfindReply being provided in tests

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-11-05 13:20:13 +01:00
parent 9b5be727b1
commit 294ec8a2b6
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -143,7 +143,9 @@ void ShareTestHelper::setup()
const auto folderMan = FolderMan::instance(); const auto folderMan = FolderMan::instance();
QCOMPARE(folderMan, &fm); 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()); const auto folder = FolderMan::instance()->folder(fakeFolder.localPath());
QVERIFY(folder); QVERIFY(folder);
QVERIFY(fakeFolder.syncOnce()); QVERIFY(fakeFolder.syncOnce());