summaryrefslogtreecommitdiffstats
path: root/tests/resourceconfigtest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-25 18:21:15 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-25 18:21:15 -0600
commitea75d4bdba79d2a879c2ed31564928d4ef3cd9b1 (patch)
tree468831622a6924b00df160b228733803c29032a7 /tests/resourceconfigtest.cpp
parent8e14799f43ea51a6d9f195c56ca4f0c0439d4039 (diff)
downloadsink-ea75d4bdba79d2a879c2ed31564928d4ef3cd9b1.tar.gz
sink-ea75d4bdba79d2a879c2ed31564928d4ef3cd9b1.zip
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.
Diffstat (limited to 'tests/resourceconfigtest.cpp')
-rw-r--r--tests/resourceconfigtest.cpp2
1 files changed, 1 insertions, 1 deletions
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:
91 auto model = Sink::Store::loadModel<SinkResource>(query); 91 auto model = Sink::Store::loadModel<SinkResource>(query);
92 QTRY_COMPARE(model->rowCount(QModelIndex()), 1); 92 QTRY_COMPARE(model->rowCount(QModelIndex()), 1);
93 auto resource = model->data(model->index(0, 0, QModelIndex()), Sink::Store::DomainObjectRole).value<SinkResource::Ptr>(); 93 auto resource = model->data(model->index(0, 0, QModelIndex()), Sink::Store::DomainObjectRole).value<SinkResource::Ptr>();
94 QCOMPARE(resource->getStatus(), static_cast<int>(OfflineStatus)); 94 QCOMPARE(resource->getStatus(), static_cast<int>(NoStatus));
95 95
96 //Synchronize to connect 96 //Synchronize to connect
97 VERIFYEXEC(Sink::Store::synchronize(query)); 97 VERIFYEXEC(Sink::Store::synchronize(query));