Skip to content

Commit

Permalink
in automated tests, update modtime when modifying the content of a file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mgallien committed Oct 16, 2024
1 parent e02cf85 commit 7df29a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/syncenginetestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7df29a8

Please sign in to comment.