From: Matthieu Gallien Date: Thu, 25 Nov 2021 15:46:10 +0000 (+0100) Subject: let auto tests of batch upload return proper file paths X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~83^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=18ef471332416fbbce12e18709d578e89086b662;p=nextcloud-desktop.git let auto tests of batch upload return proper file paths Signed-off-by: Matthieu Gallien --- diff --git a/test/syncenginetestutils.cpp b/test/syncenginetestutils.cpp index 83af262be..53369d020 100644 --- a/test/syncenginetestutils.cpp +++ b/test/syncenginetestutils.cpp @@ -488,7 +488,7 @@ void FakePutMultiFileReply::respond() fileInfoReply.insert("OC-FileID", QLatin1String{fileInfo->fileId}); fileInfoReply.insert("X-OC-MTime", "accepted"); // Prevents Q_ASSERT(!_runningNow) since we'll call PropagateItemJob::done twice in that case. emit uploadProgress(fileInfo->size, totalSize); - allFileInfoReply.insert(fileInfo->path(), fileInfoReply); + allFileInfoReply.insert(QChar('/') + fileInfo->path(), fileInfoReply); } reply.setObject(allFileInfoReply); _payload = reply.toJson();