summaryrefslogtreecommitdiffstats
path: root/tests/teststore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/teststore.cpp')
-rw-r--r--tests/teststore.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/teststore.cpp b/tests/teststore.cpp
index 71b19499..c69588ef 100644
--- a/tests/teststore.cpp
+++ b/tests/teststore.cpp
@@ -243,6 +243,14 @@ void TestStore::setup(const QVariantMap &map)
243 Sink::ResourceControl::flushMessageQueue(resources).exec().waitForFinished(); 243 Sink::ResourceControl::flushMessageQueue(resources).exec().waitForFinished();
244} 244}
245 245
246void TestStore::shutdownResources()
247{
248 const auto resources = Sink::Store::read<Sink::ApplicationDomain::SinkResource>({});
249 for (const auto &resource : resources) {
250 Sink::ResourceControl::shutdown(resource.identifier()).exec().waitForFinished();
251 }
252}
253
246QVariant TestStore::load(const QByteArray &type, const QVariantMap &filter) 254QVariant TestStore::load(const QByteArray &type, const QVariantMap &filter)
247{ 255{
248 using namespace Sink::ApplicationDomain; 256 using namespace Sink::ApplicationDomain;