diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-11-05 15:27:08 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2018-11-08 13:22:03 +0300 |
commit | 1463f8a78f0f923eabde554854b5d6fbfdb4606d (patch) | |
tree | a52f8394c2e8ea7dce7c28f9ab0ce224e363b9ed /test/syncenginetestutils.h | |
parent | 69251ed83e6892b6923af820b515ae9aa02a261d (diff) |
Test that the sync behave well if there are errors while reading the database
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r-- | test/syncenginetestutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index fbd0a2158..ab2b2777d 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -12,6 +12,7 @@ #include "filesystem.h" #include "syncengine.h" #include "common/syncjournaldb.h" +#include "csync_exclude.h" #include <cstring> #include <QDir> @@ -1134,6 +1135,8 @@ public: _journalDb.reset(new OCC::SyncJournalDb(localPath() + "._sync_test.db")); _syncEngine.reset(new OCC::SyncEngine(_account, localPath(), "", _journalDb.get())); + // Ignore temporary files from the download. (This is in the default exclude list, but we don't load it) + _syncEngine->excludedFiles().addManualExclude("]*.~*"); // A new folder will update the local file state database on first sync. // To have a state matching what users will encounter, we have to a sync |