From e0d8147e54c30389c09e3cd8cdb952f583d40ad1 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 21 Jul 2011 15:18:54 +0200 Subject: [PATCH] fix up test --- tests/signingtest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/signingtest.cpp b/tests/signingtest.cpp index 0f9e94c72..00464fdc2 100644 --- a/tests/signingtest.cpp +++ b/tests/signingtest.cpp @@ -28,6 +28,7 @@ #include "pluginloader.h" static const QString fingerprint("8B8B22090C6F7C47B1EAEE75D6B72EB1A7F1DB43"); +static const QString shortFingerprint("D6B72EB1A7F1DB43"); SigningTest::SigningTest(QObject *parent) : QObject(parent), @@ -81,7 +82,8 @@ void SigningTest::validSignatureWithoutDefinedSigFile() void SigningTest::validPackage() { - QCOMPARE(m_signing->signerOf(m_package), fingerprint); + const QString sig = m_signing->signerOf(m_package); + QVERIFY(sig == fingerprint || sig == shortFingerprint); } void SigningTest::trustLevel()