diff options
Diffstat (limited to 'tests/maildirsyncbenchmark.cpp')
-rw-r--r-- | tests/maildirsyncbenchmark.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/maildirsyncbenchmark.cpp b/tests/maildirsyncbenchmark.cpp index 06c5ab1..d84c758 100644 --- a/tests/maildirsyncbenchmark.cpp +++ b/tests/maildirsyncbenchmark.cpp | |||
@@ -61,18 +61,17 @@ private slots: | |||
61 | { | 61 | { |
62 | targetPath = tempDir.path() + "/maildir1"; | 62 | targetPath = tempDir.path() + "/maildir1"; |
63 | 63 | ||
64 | Sink::Log::setDebugOutputLevel(Sink::Log::Log); | 64 | MaildirResource::removeFromDisk("sink.maildir.test1"); |
65 | MaildirResource::removeFromDisk("org.kde.maildir.test1"); | ||
66 | Sink::ApplicationDomain::SinkResource resource; | 65 | Sink::ApplicationDomain::SinkResource resource; |
67 | resource.setProperty("identifier", "org.kde.maildir.test1"); | 66 | resource.setProperty("identifier", "sink.maildir.test1"); |
68 | resource.setProperty("type", "org.kde.maildir"); | 67 | resource.setProperty("type", "sink.maildir"); |
69 | resource.setProperty("path", targetPath); | 68 | resource.setProperty("path", targetPath); |
70 | Sink::Store::create(resource).exec().waitForFinished(); | 69 | Sink::Store::create(resource).exec().waitForFinished(); |
71 | } | 70 | } |
72 | 71 | ||
73 | void cleanup() | 72 | void cleanup() |
74 | { | 73 | { |
75 | MaildirResource::removeFromDisk("org.kde.maildir.test1"); | 74 | MaildirResource::removeFromDisk("sink.maildir.test1"); |
76 | QDir dir(targetPath); | 75 | QDir dir(targetPath); |
77 | dir.removeRecursively(); | 76 | dir.removeRecursively(); |
78 | } | 77 | } |
@@ -84,8 +83,8 @@ private slots: | |||
84 | 83 | ||
85 | void testbench() | 84 | void testbench() |
86 | { | 85 | { |
87 | auto pipeline = QSharedPointer<Sink::Pipeline>::create("org.kde.maildir.test1"); | 86 | auto pipeline = QSharedPointer<Sink::Pipeline>::create("sink.maildir.test1"); |
88 | MaildirResource resource("org.kde.maildir.test1", pipeline); | 87 | MaildirResource resource("sink.maildir.test1", pipeline); |
89 | QTime time; | 88 | QTime time; |
90 | time.start(); | 89 | time.start(); |
91 | resource.Sink::GenericResource::synchronizeWithSource().exec().waitForFinished(); | 90 | resource.Sink::GenericResource::synchronizeWithSource().exec().waitForFinished(); |