summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-10-02 08:31:43 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-10-02 08:31:43 (GMT)
commit78947797001deba456a6b2ce525e7ff6484a2c7d (patch)
treedbc8247bf22cc199b16c18a87d83a549b39e7583
parent6055f43757d5d028b5fba63041ee95465ca19260 (diff)
Fix FakeAkonadiServer-based tests
-rw-r--r--autotests/server/fakeakonadiserver.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/autotests/server/fakeakonadiserver.cpp b/autotests/server/fakeakonadiserver.cpp
index 420a0e7..676f6ae 100644
--- a/autotests/server/fakeakonadiserver.cpp
+++ b/autotests/server/fakeakonadiserver.cpp
@@ -147,11 +147,13 @@ QString FakeAkonadiServer::instanceName()
TestScenario::List FakeAkonadiServer::loginScenario(const QByteArray &sessionId)
{
+ SchemaVersion schema = SchemaVersion::retrieveAll().first();
+
Protocol::HelloResponse hello;
hello.setServerName(QStringLiteral("Akonadi"));
- hello.setMessage(QStringLiteral("Not really IMAP server"));
+ hello.setMessage(QStringLiteral("Not Really IMAP server"));
hello.setProtocolVersion(Protocol::version());
- hello.setGeneration(1);
+ hello.setGeneration(schema.generation());
return {
TestScenario::create(0, TestScenario::ServerCmd, hello),