summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/tests/imapmailsynctest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 11:55:25 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 11:55:25 +0100
commit7fef00eaaac3751d4bafcac3baacfd86906a77ff (patch)
tree4de75f42dcd4cb21fe82e9ae00dc1dce98f4eea3 /examples/imapresource/tests/imapmailsynctest.cpp
parentee5dfc0878059a48fdff7ca16b0aa69a652414d5 (diff)
downloadsink-7fef00eaaac3751d4bafcac3baacfd86906a77ff.tar.gz
sink-7fef00eaaac3751d4bafcac3baacfd86906a77ff.zip
Don't hardcode the returned id.
Diffstat (limited to 'examples/imapresource/tests/imapmailsynctest.cpp')
-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