Tests: Fail if the initial sync fails
authorChristian Kamm <mail@ckamm.de>
Mon, 7 Oct 2019 12:58:59 +0000 (14:58 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:01 +0000 (10:59 +0100)
test/syncenginetestutils.h

index 5f2e447bfc8f16953d2047370cc19d5a32ea0770..0774f2a974f06896c187d393c2a792bb9ca13fc3 100644 (file)
@@ -988,7 +988,7 @@ public:
         // 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
         // using an identical local/remote file tree first.
-        syncOnce();
+        ENFORCE(syncOnce());
     }
 
     void switchToVfs(QSharedPointer<OCC::Vfs> vfs)