Commit 046d33f7 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Add explainer for weird fail case in mailtemplatetest and added alternate test

Signed-off-by: Claudio Cambra's avatarClaudio Cambra <>
parent ddc9ead3
Pipeline #248576 failed with stage
in 2 minutes and 52 seconds
......@@ -593,12 +593,21 @@ private Q_SLOTS:
QCOMPARE(result->contentType()->mimeType(), QByteArray{"multipart/alternative"});
QCOMPARE(result->attachments().size(), 1);
// FIXME: KMime should return 0 for this multipart but it doesn't sometimes(?)
// It is an attachment as the ical part:
// A) Has a name
// B) Has a content disposition of CDattachment
// Check the result of QVERIFY(KMime::isAttachment(result->contents()[1])); if
// it is true then this confirms that result->attachments() is misreporting
QEXPECT_FAIL("", "Should be recognised as an attachment", TestFailMode::Continue);
QCOMPARE(result->attachments().count(), 1);
QCOMPARE(result->contents().size(), 2);
QCOMPARE(result->contents()[1]->contentType()->name(), QLatin1String{"event.ics"});
void testEncryptedWithProtectedHeadersReply()
Supports Markdown
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