summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/genericresourcetest.cpp3
-rw-r--r--tests/messagequeuetest.cpp2
-rw-r--r--tests/storagetest.cpp7
3 files changed, 7 insertions, 5 deletions
diff --git a/tests/genericresourcetest.cpp b/tests/genericresourcetest.cpp
index 0c5db15..fa6da22 100644
--- a/tests/genericresourcetest.cpp
+++ b/tests/genericresourcetest.cpp
@@ -44,9 +44,6 @@ private Q_SLOTS:
44 removeFromDisk("org.kde.test.instance1.userqueue"); 44 removeFromDisk("org.kde.test.instance1.userqueue");
45 removeFromDisk("org.kde.test.instance1.synchronizerqueue"); 45 removeFromDisk("org.kde.test.instance1.synchronizerqueue");
46 Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace); 46 Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace);
47 qDebug();
48 qDebug() << "-----------------------------------------";
49 qDebug();
50 } 47 }
51 48
52 void testProcessCommand() 49 void testProcessCommand()
diff --git a/tests/messagequeuetest.cpp b/tests/messagequeuetest.cpp
index 9c2aa16..22ce161 100644
--- a/tests/messagequeuetest.cpp
+++ b/tests/messagequeuetest.cpp
@@ -49,7 +49,7 @@ private Q_SLOTS:
49 gotError = true; 49 gotError = true;
50 }); 50 });
51 QVERIFY(!gotValue); 51 QVERIFY(!gotValue);
52 QVERIFY(gotError); 52 QVERIFY(!gotError);
53 } 53 }
54 54
55 void testEnqueue() 55 void testEnqueue()
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 },