Mercurial > trustbridge
diff ui/tests/createcertlisttest.cpp @ 474:bcae22d57e67
Do not verify Msec equality on the DateTime. We only store seconds
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 16:54:16 +0000 |
parents | dd54c02fc28a |
children | 317ee9dc4684 |
line wrap: on
line diff
--- a/ui/tests/createcertlisttest.cpp Wed Apr 23 16:53:47 2014 +0000 +++ b/ui/tests/createcertlisttest.cpp Wed Apr 23 16:54:16 2014 +0000 @@ -49,7 +49,10 @@ CertificateList outputList = CertificateList(outputFile.fileName().toLocal8Bit().data()); QVERIFY(outputList.isValid()); QVERIFY(outputList.getCertificates() == validList.getCertificates()); - QVERIFY(outputList.date() == current); + QVERIFY(outputList.date().date() == current.date()); + QVERIFY(outputList.date().time().hour() == current.time().hour()); + QVERIFY(outputList.date().time().minute() == current.time().minute()); + QVERIFY(outputList.date().time().second() == current.time().second()); } void CreateCertListTest::testSha256Sum()