Commit ab111e47 authored by David Faure's avatar David Faure
Browse files

Fix expected value in messagefactorytest.

Summary:
Now messagefactorytest passes. Please check if this is the correct expected value though.
I just noticed that this test is gone in master though, messagefactorytest being rewritten?

Test Plan: ctest -R messagefactorytest

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D4811
parent a9a88314
......@@ -207,8 +207,9 @@ void MessageFactoryTest::testCreateReplyToAllWithUseSenderAndIdentityInCCAsync()
QCOMPARE_OR_DIFF(reply.msg->body(), replyStr.toLatin1());
QString dateStr = reply.msg->date()->asUnicodeString();
QString ba = QString::fromLatin1("From: another <another@another.com>\n"
"Date: %1\n"
QString ba = QString::fromLatin1("From: foo1 <identity1@bla.com>\n"
"X-KMail-Identity: %1\n"
"Date: %2\n"
"Cc: blo <blo@blo.org>, bli <bli@bli.org>, blu <blu@blu.org>, bly <bly@bly.org>, Bla <identity1@bla.com>\n"
"To: Bla <identity1@bla.com>\n"
"Subject: Re: Plain Message Test\n"
......@@ -216,8 +217,8 @@ void MessageFactoryTest::testCreateReplyToAllWithUseSenderAndIdentityInCCAsync()
"Content-Transfer-Encoding: 8Bit\nMIME-Version: 1.0\n"
"X-KMail-Link-Message: 0\n"
"X-KMail-Link-Type: reply\n\n"
"%2")
.arg(dateStr).arg(replyStr);
"%3")
.arg(i1.uoid()).arg(dateStr).arg(replyStr);
QCOMPARE_OR_DIFF(reply.msg->encodedContent(), ba.toLatin1());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment