From c9f26c4cbca654417d304c9214aa3a7709631159 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 23 May 2016 14:43:26 +0200 Subject: Propagate test-mode to resources. This way we can run tests in completely separate data-directories. --- examples/imapresource/tests/imapresourcetest.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/imapresource') diff --git a/examples/imapresource/tests/imapresourcetest.cpp b/examples/imapresource/tests/imapresourcetest.cpp index 7d4453b..fa3caa7 100644 --- a/examples/imapresource/tests/imapresourcetest.cpp +++ b/examples/imapresource/tests/imapresourcetest.cpp @@ -53,10 +53,7 @@ class ImapResourceTest : public QObject private slots: void initTestCase() { - - //FIXME initTest only works for the current process, - //we also have to start resources in test-mode - // Sink::Test::initTest(); + Sink::Test::initTest(); Sink::Log::setDebugOutputLevel(Sink::Log::Trace); ::ImapResource::removeFromDisk("org.kde.imap.instance1"); system("resetmailbox.sh"); -- cgit v1.2.3