зеркало из https://github.com/nextcloud/desktop.git
SyncJournalTest: Use valid time for the tests.
This commit is contained in:
Родитель
aaa5c1bc5f
Коммит
e3a846bb1f
|
@ -99,7 +99,7 @@ private slots:
|
|||
record._remotePerm = "744";
|
||||
record._contentChecksum = "mychecksum";
|
||||
record._contentChecksumType = "MD5";
|
||||
record._modtime = QDateTime::currentDateTime();
|
||||
record._modtime = QDateTime::currentDateTimeUtc();
|
||||
QVERIFY(_db.setFileRecord(record));
|
||||
|
||||
SyncJournalFileRecord storedRecord = _db.getFileRecord("foo-checksum");
|
||||
|
@ -119,6 +119,8 @@ private slots:
|
|||
SyncJournalFileRecord record;
|
||||
record._path = "foo-nochecksum";
|
||||
record._remotePerm = "744";
|
||||
record._modtime = QDateTime::currentDateTimeUtc();
|
||||
|
||||
QVERIFY(_db.setFileRecord(record));
|
||||
|
||||
SyncJournalFileRecord storedRecord = _db.getFileRecord("foo-nochecksum");
|
||||
|
|
Загрузка…
Ссылка в новой задаче