From 9747f7bcd6ec5c3bdbf61398f9a12d950981bca6 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Thu, 12 Oct 2023 01:05:35 +0200 Subject: [PATCH] tweak tests --- test/backend/unit/model/sql/SearchManager.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/backend/unit/model/sql/SearchManager.spec.ts b/test/backend/unit/model/sql/SearchManager.spec.ts index c4e93ecf..ffc7091b 100644 --- a/test/backend/unit/model/sql/SearchManager.spec.ts +++ b/test/backend/unit/model/sql/SearchManager.spec.ts @@ -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');