mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Fix unittests
This commit is contained in:
parent
a72ff9ea7f
commit
56364f1c70
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue