summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-03 11:17:08 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-03 11:23:25 +0100
commit0f75ad4b96ec5994c022109278cad28a43255793 (patch)
tree6d7c6153025a79557dd1218d9be0a4a7cb7945c5 /tests/dummyresourcetest.cpp
parent2c80424031c195333cfa6785ea7ab57dc9613fa3 (diff)
downloadsink-0f75ad4b96ec5994c022109278cad28a43255793.tar.gz
sink-0f75ad4b96ec5994c022109278cad28a43255793.zip
Improved resource access caching
* Smarter caching. ResourceAccess instances close after a timeout, if not reused. * Introduced a start command to avoid race condition when sending commands to a resource that is currently shutting down. * We resend pending commands after we lost access to the resource * unexpectedly.
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r--tests/dummyresourcetest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp
index 20c725f..b8711a2 100644
--- a/tests/dummyresourcetest.cpp
+++ b/tests/dummyresourcetest.cpp
@@ -35,6 +35,7 @@ private Q_SLOTS:
35 DummyResource::removeFromDisk("org.kde.dummy.instance1"); 35 DummyResource::removeFromDisk("org.kde.dummy.instance1");
36 auto factory = Akonadi2::ResourceFactory::load("org.kde.dummy"); 36 auto factory = Akonadi2::ResourceFactory::load("org.kde.dummy");
37 QVERIFY(factory); 37 QVERIFY(factory);
38 Akonadi2::Store::start(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished();
38 } 39 }
39 40
40 void init() 41 void init()