1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

tweak tests

This commit is contained in:
Patrik J. Braun 2023-10-12 01:05:35 +02:00
parent 61147932b7
commit 9747f7bcd6

View File

@ -936,7 +936,7 @@ describe('SearchManager', (sqlHelper: DBTestHelper) => {
await sqlHelper.clearDB();
await setUpSqlDB();
p5 = TestHelper.getBasePhotoEntry(subDir2, 'p5-23h-ago.jpg');
p5.metadata.creationDate = Date.now() - 60 * 60 * 23 * 1000;
p5.metadata.creationDate = Date.now() - 60 * 60 * 24 * 1000 - 1000;
p6 = TestHelper.getBasePhotoEntry(subDir2, 'p6-300d-ago.jpg');
p6.metadata.creationDate = Date.now() - 60 * 60 * 24 * 300 * 1000;
p7 = TestHelper.getBasePhotoEntry(subDir2, 'p7-1y-1min-ago.jpg');