summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/imapresource/tests/imapmailsynctest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/imapresource/tests/imapmailsynctest.cpp b/examples/imapresource/tests/imapmailsynctest.cpp
index 2d937ce..1d62a80 100644
--- a/examples/imapresource/tests/imapmailsynctest.cpp
+++ b/examples/imapresource/tests/imapmailsynctest.cpp
@@ -101,8 +101,11 @@ protected:
101 { 101 {
102 Imap::ImapServerProxy imap("localhost", 143, Imap::NoEncryption); 102 Imap::ImapServerProxy imap("localhost", 143, Imap::NoEncryption);
103 VERIFYEXEC_RET(imap.login("doe", "doe"), {}); 103 VERIFYEXEC_RET(imap.login("doe", "doe"), {});
104 VERIFYEXEC_RET(imap.append("INBOX." + folderPath.join('.'), message), {}); 104 auto appendJob = imap.append("INBOX." + folderPath.join('.'), message);
105 return "2:*"; 105 auto future = appendJob.exec();
106 future.waitForFinished();
107 auto result = future.value();
108 return QByteArray::number(result);
106 } 109 }
107 110
108 void removeMessage(const QStringList &folderPath, const QByteArray &messages) Q_DECL_OVERRIDE 111 void removeMessage(const QStringList &folderPath, const QByteArray &messages) Q_DECL_OVERRIDE