Explorar o código

Fix TestSyncEngine::testDirDownloadWithError

On master, the scheduling is different and the tasks abort in another
order
Olivier Goffart %!s(int64=9) %!d(string=hai) anos
pai
achega
1a98b49f1b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      test/testsyncengine.cpp

+ 3 - 1
test/testsyncengine.cpp

@@ -251,8 +251,10 @@ private slots:
             qDebug() << item->_file << item->_isDirectory << item->_status;
             QVERIFY(!seen.contains(item->_file)); // signal only sent once per item
             seen.insert(item->_file);
-            if (item->_file == "Y/Z/d2" || item->_file == "Y/Z/d3") {
+            if (item->_file == "Y/Z/d2") {
                 QVERIFY(item->_status == SyncFileItem::FatalError);
+            } else if(item->_file == "Y/Z/d3") {
+                QVERIFY(item->_status != SyncFileItem::Success);
             }
             QVERIFY(item->_file != "Y/Z/d9"); // we should have aborted the sync before d9 starts
         }