diff --git a/tests/testnotificationlistener.cpp b/tests/testnotificationlistener.cpp index bf781e6a4..bf700f54f 100644 --- a/tests/testnotificationlistener.cpp +++ b/tests/testnotificationlistener.cpp @@ -370,7 +370,7 @@ void TestNotificationListener::testNotify() QCOMPARE(retId, replacesId); QCOMPARE(++proxiedNotifications, d->getSentPackets()); QVERIFY(d->getLastPacket()->hasPayload()); - QCOMPARE(d->getLastPacket()->payloadSize(), fi.size()); + QCOMPARE(d->getLastPacket()->payloadSize(), QFile(fi.baseName()).size()); // works also with absolute paths retId = listener->Notify(appName, replacesId, iconName, summary, body, {}, {{}}, 0); QCOMPARE(retId, replacesId);