From e684891d0792d803cea103f3a23fb054807ab67f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Aug 2018 20:21:03 +0200 Subject: Reset the testenvironment --- examples/carddavresource/tests/carddavtest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/carddavresource/tests/carddavtest.cpp b/examples/carddavresource/tests/carddavtest.cpp index b0f41d1..3da03a6 100644 --- a/examples/carddavresource/tests/carddavtest.cpp +++ b/examples/carddavresource/tests/carddavtest.cpp @@ -30,7 +30,6 @@ class CardDavTest : public QObject resource.setProperty("server", "http://localhost/dav/addressbooks/user/doe"); resource.setProperty("username", "doe"); Sink::SecretStore::instance().insert(resource.identifier(), "doe"); - resource.setProperty("testmode", true); return resource; } @@ -69,11 +68,17 @@ class CardDavTest : public QObject } } + void resetTestEnvironment() + { + system("resetmailbox.sh"); + } + private slots: void initTestCase() { Sink::Test::initTest(); + resetTestEnvironment(); auto resource = createResource(); QVERIFY(!resource.identifier().isEmpty()); VERIFYEXEC(Sink::Store::create(resource)); -- cgit v1.2.3