Commit 6055f437 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix DbInitializerTest

parent 91787158
......@@ -24,7 +24,10 @@
#include <QtCore/QDebug>
#include <QtCore/QVariant>
#include "storage/dbinitializer.h"
#define DBINITIALIZER_UNITTEST
#include "storage/dbinitializer.cpp"
#undef DBINITIALIZER_UNITTEST
#include <shared/aktest.h>
#define QL1S(x) QLatin1String(x)
......
......@@ -92,6 +92,7 @@ bool DbInitializer::run()
}
}
#ifndef DBINITIALIZER_UNITTEST
// Now finally check and set the generation identifier if necessary
SchemaVersion version = SchemaVersion::retrieveAll().first();
if (version.generation() == 0) {
......@@ -100,6 +101,7 @@ bool DbInitializer::run()
qCDebug(AKONADISERVER_LOG) << "Generation:" << version.generation();
}
#endif
qCDebug(AKONADISERVER_LOG) << "DbInitializer::run() done";
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment