浏览代码

Invoke 'bool Folder::isSyncRunning() const' from tests.

Signed-off-by: allexzander <blackslayer4@gmail.com>
allexzander 4 年之前
父节点
当前提交
88d18fd5f3
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      test/testfolderman.cpp

+ 6 - 0
test/testfolderman.cpp

@@ -57,6 +57,12 @@ private slots:
         QVERIFY(folderman->addFolder(newAccountState.data(), folderDefinition(dirPath + "/sub/ownCloud1")));
         QVERIFY(folderman->addFolder(newAccountState.data(), folderDefinition(dirPath + "/ownCloud2")));
 
+        const auto folderList = folderman->map();
+
+        for (const auto &folder : folderList) {
+            QVERIFY(!folder->isSyncRunning());
+        }
+
 
         // those should be allowed
         // QString FolderMan::checkPathValidityForNewFolder(const QString& path, const QUrl &serverUrl, bool forNewDirectory)