mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
filter out some errors if they are related to network troubles
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
0e002f35f4
commit
cd6ee68fec
1 changed files with 11 additions and 0 deletions
|
@ -445,6 +445,17 @@ public:
|
|||
return model;
|
||||
}
|
||||
|
||||
void testActivityAdd(void(OCC::ActivityListModel::*addingMethod)(const OCC::Activity&, OCC::ActivityListModel::ErrorType), OCC::Activity &activity) {
|
||||
const auto model = testingALM();
|
||||
QCOMPARE(model->rowCount(), 0);
|
||||
|
||||
(model.data()->*addingMethod)(activity, OCC::ActivityListModel::ErrorType::SyncError);
|
||||
QCOMPARE(model->rowCount(), 1);
|
||||
|
||||
const auto index = model->index(0, 0);
|
||||
QVERIFY(index.isValid());
|
||||
}
|
||||
|
||||
void testActivityAdd(void(OCC::ActivityListModel::*addingMethod)(const OCC::Activity&), OCC::Activity &activity) {
|
||||
const auto model = testingALM();
|
||||
QCOMPARE(model->rowCount(), 0);
|
||||
|
|
Loading…
Reference in a new issue