summaryrefslogtreecommitdiffstats
path: root/tests/storagetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storagetest.cpp')
-rw-r--r--tests/storagetest.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp
index fe80bb7..e872c44 100644
--- a/tests/storagetest.cpp
+++ b/tests/storagetest.cpp
@@ -159,7 +159,12 @@ private Q_SLOTS:
159 bool gotResult = false; 159 bool gotResult = false;
160 bool gotError = false; 160 bool gotError = false;
161 Akonadi2::Storage store(testDataPath, dbName, Akonadi2::Storage::ReadWrite); 161 Akonadi2::Storage store(testDataPath, dbName, Akonadi2::Storage::ReadWrite);
162 int numValues = store.createTransaction(Akonadi2::Storage::ReadOnly).scan("", [&](const QByteArray &key, const QByteArray &value) -> bool { 162 auto transaction = store.createTransaction(Akonadi2::Storage::ReadOnly);
163 auto db = transaction.openDatabase("default", [&](const Akonadi2::Storage::Error &error) {
164 qDebug() << error.message;
165 gotError = true;
166 });
167 int numValues = db.scan("", [&](const QByteArray &key, const QByteArray &value) -> bool {
163 gotResult = true; 168 gotResult = true;
164 return false; 169 return false;
165 }, 170 },