diff options
authorDaniel Vrátil <[email protected]>2015-10-28 11:20:49 +0100
committerDaniel Vrátil <[email protected]>2015-10-28 11:22:26 +0100
commit219989ca7ca640b2e9acced255d2a20d7c34d18f (patch)
parent96c57b8b9d71058d0230d04e6892f88443d56ec8 (diff)
SearchPluginTest: only index the test data once, instead of for each test function
Presumably /tmp on the CI is not a tmpfs, so reindexing (and searching) takes longer than on developer machines, causing the test to hit the 2 minutes timeout. The search is read-only, so there's no need to re-index the data before every test function. Only indexing the data once will save us some precious seconds and hopefully getting us under the 2 minutes time limit on CI.
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadiplugin/autotests/searchplugintest.cpp b/akonadiplugin/autotests/searchplugintest.cpp
index cee3acc..7fd8cea 100644
--- a/akonadiplugin/autotests/searchplugintest.cpp
+++ b/akonadiplugin/autotests/searchplugintest.cpp
@@ -70,7 +70,7 @@ private:
private Q_SLOTS:
- void init()
+ void initTestCase()
emailDir = QDir::tempPath() + QLatin1String("/searchplugintest/email/");
emailContactsDir = QDir::tempPath() + QLatin1String("/searchplugintest/emailcontacts/");