Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-03-09 12:35:58 +0300
committerOlivier Goffart <ogoffart@woboq.com>2017-03-09 12:35:58 +0300
commit1a98b49f1b90038abbbf14740beaa2b90e4bae7c (patch)
tree2c0079ddb3bc7d08e454bf171e541315a030b10c /test/testsyncengine.cpp
parent0e8f0481d434272ad593f14e37db1774cf568c47 (diff)
Fix TestSyncEngine::testDirDownloadWithError
On master, the scheduling is different and the tasks abort in another order
Diffstat (limited to 'test/testsyncengine.cpp')
-rw-r--r--test/testsyncengine.cpp4
1 files changed, 3 insertions, 1 deletions
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
}