From 1a98b49f1b90038abbbf14740beaa2b90e4bae7c Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 9 Mar 2017 10:35:58 +0100 Subject: [PATCH] Fix TestSyncEngine::testDirDownloadWithError On master, the scheduling is different and the tasks abort in another order --- test/testsyncengine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testsyncengine.cpp b/test/testsyncengine.cpp index 5567608d5..59314222f 100644 --- a/test/testsyncengine.cpp +++ b/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 } -- 2.39.5