summaryrefslogtreecommitdiffstats
path: root/store/test/storagetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'store/test/storagetest.cpp')
-rw-r--r--store/test/storagetest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/store/test/storagetest.cpp b/store/test/storagetest.cpp
index 1b105af..dba4f6c 100644
--- a/store/test/storagetest.cpp
+++ b/store/test/storagetest.cpp
@@ -37,12 +37,14 @@ private:
37 { 37 {
38 bool error = false; 38 bool error = false;
39 const auto reference = keyPrefix + std::to_string(i); 39 const auto reference = keyPrefix + std::to_string(i);
40 db.read(keyPrefix + std::to_string(i), [&error, &reference](const std::string &value) { 40 if(!db.read(keyPrefix + std::to_string(i), [&error, &reference](const std::string &value) {
41 if (value != reference) { 41 if (value != reference) {
42 qDebug() << "Mismatch while reading"; 42 qDebug() << "Mismatch while reading";
43 error = true; 43 error = true;
44 } 44 }
45 }); 45 })) {
46 return false;
47 }
46 return !error; 48 return !error;
47 } 49 }
48 50