Fix TestSyncEngine::testDirDownloadWithError
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 9 Mar 2017 09:35:58 +0000 (10:35 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 9 Mar 2017 09:35:58 +0000 (10:35 +0100)
On master, the scheduling is different and the tasks abort in another
order

test/testsyncengine.cpp

index 5567608d56c42d3259b385ce1fefac360cc96c4e..59314222f5e64900a4495b41520575627ce75630 100644 (file)
@@ -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
         }