From ea75d4bdba79d2a879c2ed31564928d4ef3cd9b1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 25 Aug 2017 18:21:15 -0600 Subject: Default to NoStatus for resources until we know more. This allows the aggregation to ignore resources where we don't have any status information yet, so the account doesn't always end up being offline. --- tests/accountstest.cpp | 2 +- tests/resourceconfigtest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp index 0ab18ef..cc67645 100644 --- a/tests/accountstest.cpp +++ b/tests/accountstest.cpp @@ -139,7 +139,7 @@ private slots: auto model = Sink::Store::loadModel(query); QTRY_COMPARE(model->rowCount(QModelIndex()), 1); auto account = model->data(model->index(0, 0, QModelIndex()), Sink::Store::DomainObjectRole).value(); - QCOMPARE(account->getStatus(), static_cast(Sink::ApplicationDomain::OfflineStatus)); + QCOMPARE(account->getStatus(), static_cast(Sink::ApplicationDomain::NoStatus)); //Synchronize to connect VERIFYEXEC(Sink::Store::synchronize(Query().resourceFilter(res.identifier()))); diff --git a/tests/resourceconfigtest.cpp b/tests/resourceconfigtest.cpp index df98a61..78a0d4c 100644 --- a/tests/resourceconfigtest.cpp +++ b/tests/resourceconfigtest.cpp @@ -91,7 +91,7 @@ private slots: auto model = Sink::Store::loadModel(query); QTRY_COMPARE(model->rowCount(QModelIndex()), 1); auto resource = model->data(model->index(0, 0, QModelIndex()), Sink::Store::DomainObjectRole).value(); - QCOMPARE(resource->getStatus(), static_cast(OfflineStatus)); + QCOMPARE(resource->getStatus(), static_cast(NoStatus)); //Synchronize to connect VERIFYEXEC(Sink::Store::synchronize(query)); -- cgit v1.2.3