Mercurial > trustbridge
changeset 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 | 9cd28df2c4ce |
children | 6c4f526a4c5b a8d56a2846a8 |
files | ui/tests/createcertlisttest.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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()