From: Matthieu Gallien Date: Wed, 16 Oct 2024 11:12:43 +0000 (+0200) Subject: in automated tests, update modtime when modifying the content of a file X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~58^2^2~114^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7301ad335685435287498aa767355940ecd66c5b;p=nextcloud-desktop.git in automated tests, update modtime when modifying the content of a file why one would not update the modification time when modifying a remote file during automated tests there is no reason to not update the modification time as this is what is done by the server Signed-off-by: Matthieu Gallien --- diff --git a/test/syncenginetestutils.cpp b/test/syncenginetestutils.cpp index 6c01bf29c..7c8d4eabc 100644 --- a/test/syncenginetestutils.cpp +++ b/test/syncenginetestutils.cpp @@ -178,6 +178,7 @@ void FileInfo::setContents(const QString &relativePath, char contentChar) FileInfo *file = findInvalidatingEtags(relativePath); Q_ASSERT(file); file->contentChar = contentChar; + file->lastModified = QDateTime::currentDateTimeUtc(); } void FileInfo::appendByte(const QString &relativePath)