Commit b1c5d73b authored by David Faure's avatar David Faure

Fix maildir test by using the right dbus service name

parent 8a27e287
......@@ -28,6 +28,7 @@
#include <AkonadiCore/AgentInstance>
#include <AkonadiCore/AgentManager>
#include <AkonadiCore/ServerManager>
#include <AkonadiCore/Control>
#include <qtest_akonadi.h>
#include <QSignalSpy>
......@@ -61,7 +62,7 @@ void SyncTest::testSync()
for (int i = 0; i < TIMES; ++i) {
QDBusInterface interface(
QStringLiteral("org.freedesktop.Akonadi.Resource.%1").arg(mMaildirIdentifier),
Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Resource, mMaildirIdentifier),
QStringLiteral("/"), QStringLiteral("org.freedesktop.Akonadi.Resource"), QDBusConnection::sessionBus(), this);
QVERIFY(interface.isValid());
QElapsedTimer t;
......
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