Fix unittests

This commit is contained in:
Hannah von Reth 2021-01-07 17:37:50 +01:00 committed by Matthieu Gallien
parent a72ff9ea7f
commit 56364f1c70

View file

@ -117,7 +117,7 @@ private slots:
{
SyncJournalFileRecord record;
record._path = "foo-nochecksum";
record._remotePerm = RemotePermissions();
record._remotePerm = RemotePermissions::fromDbValue("RW");
record._modtime = Utility::qDateTimeToTime_t(QDateTime::currentDateTimeUtc());
QVERIFY(_db.setFileRecord(record));
@ -214,6 +214,7 @@ private slots:
record._path = path;
record._type = type;
record._etag = initialEtag;
record._remotePerm = RemotePermissions::fromDbValue("RW");
_db.setFileRecord(record);
};
auto getEtag = [&](const QByteArray &path) {
@ -275,6 +276,7 @@ private slots:
auto makeEntry = [&](const QByteArray &path) {
SyncJournalFileRecord record;
record._path = path;
record._remotePerm = RemotePermissions::fromDbValue("RW");
_db.setFileRecord(record);
};