Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Feb 11, 2021
1 parent 164234b commit 5632782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/testsyncjournaldb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -201,6 +201,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) {
Expand Down Expand Up @@ -265,6 +266,7 @@ private slots:
auto makeEntry = [&](const QByteArray &path) {
SyncJournalFileRecord record;
record._path = path;
record._remotePerm = RemotePermissions::fromDbValue("RW");
_db.setFileRecord(record);
};

Expand Down

0 comments on commit 5632782

Please sign in to comment.