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 authored and backportbot[bot] committed Oct 17, 2024
1 parent 31742d8 commit 243b5ec
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 243b5ec

Please sign in to comment.