Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-06-29 16:55:02 +0300
committerGitHub <noreply@github.com>2022-06-29 16:55:02 +0300
commit8b9e13de40fbfe4166b1e3388c7cf3945f4ef318 (patch)
tree5e6b5bb41b2f0914b4d70666284489a021ea20b2 /test/testutils
parentbc9e1ea5807bc6c245de87968a956b94eced8f19 (diff)
setSyncOptions must be called after the vfs plugin changed (#9825)
Fixes: #9824
Diffstat (limited to 'test/testutils')
-rw-r--r--test/testutils/syncenginetestutils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/testutils/syncenginetestutils.cpp b/test/testutils/syncenginetestutils.cpp
index 4a9fdab5c..993496f86 100644
--- a/test/testutils/syncenginetestutils.cpp
+++ b/test/testutils/syncenginetestutils.cpp
@@ -959,9 +959,8 @@ FakeFolder::FakeFolder(const FileInfo &fileTemplate, OCC::Vfs::Mode vfsMode)
_journalDb.reset(new OCC::SyncJournalDb(localPath() + QStringLiteral(".sync_test.db")));
// TODO: davUrl
- const OCC::SyncOptions opt(QSharedPointer<OCC::Vfs>(OCC::createVfsFromPlugin(_vfsMode).release()));
-
- _syncEngine.reset(new OCC::SyncEngine(_account, opt, _account->davUrl(), localPath(), QString(), _journalDb.get()));
+ _syncEngine.reset(new OCC::SyncEngine(_account, _account->davUrl(), localPath(), QString(), _journalDb.get()));
+ _syncEngine->setSyncOptions(OCC::SyncOptions { QSharedPointer<OCC::Vfs>(OCC::createVfsFromPlugin(_vfsMode).release()) });
// Ignore temporary files from the download. (This is in the default exclude list, but we don't load it)
_syncEngine->excludedFiles().addManualExclude(QStringLiteral("]*.~*"));