summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-07-15 12:31:54 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-07-15 13:40:25 (GMT)
commite655baca684cfbd9e8efd067b856d1d4ac25300d (patch)
tree14d045bef92f93c5b5af241ec3a3b42dcc48178b
parent56422137c2e676be0c20f9601055ba4382b0153d (diff)
downloadlibkolab-e655baca684cfbd9e8efd067b856d1d4ac25300d.tar.gz
override timestamp
-rw-r--r--tests/formattest.cpp1
-rw-r--r--tests/testfiles/v3/readonly/png.vcf.mime2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/formattest.cpp b/tests/formattest.cpp
index 7db4617..de8b321 100644
--- a/tests/formattest.cpp
+++ b/tests/formattest.cpp
@@ -259,6 +259,7 @@ void FormatTest::testContact()
QCOMPARE( realAddressee, convertedAddressee );
//Write
+ Kolab::overrideTimestamp(Kolab::cDateTime(2012, 5, 5, 5,5,5, true));
const KMime::Message::Ptr &convertedMime = Kolab::KolabObjectWriter::writeContact(realAddressee, version);
if ( !compareMimeMessage( convertedMime, msg )) {
diff --git a/tests/testfiles/v3/readonly/png.vcf.mime b/tests/testfiles/v3/readonly/png.vcf.mime
index 6f6c4db..aa90145 100644
--- a/tests/testfiles/v3/readonly/png.vcf.mime
+++ b/tests/testfiles/v3/readonly/png.vcf.mime
@@ -40,7 +40,7 @@ Content-Disposition: attachment;
<text>Roundcube-libkolab-0.9 Libkolabxml-0.8.4</text>
</prodid>
<rev>
- <timestamp>20130712T151121Z</timestamp>
+ <timestamp>20120505T050505Z</timestamp>
</rev>
<kind>
<text>individual</text>