From 7fef00eaaac3751d4bafcac3baacfd86906a77ff Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 2 Mar 2018 11:55:25 +0100 Subject: Don't hardcode the returned id. --- examples/imapresource/tests/imapmailsynctest.cpp | 7 +++++-- 1 file 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: { Imap::ImapServerProxy imap("localhost", 143, Imap::NoEncryption); VERIFYEXEC_RET(imap.login("doe", "doe"), {}); - VERIFYEXEC_RET(imap.append("INBOX." + folderPath.join('.'), message), {}); - return "2:*"; + auto appendJob = imap.append("INBOX." + folderPath.join('.'), message); + auto future = appendJob.exec(); + future.waitForFinished(); + auto result = future.value(); + return QByteArray::number(result); } void removeMessage(const QStringList &folderPath, const QByteArray &messages) Q_DECL_OVERRIDE -- cgit v1.2.3