Skip to content

Commit

Permalink
Increase metadata parser test counter
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Jun 30, 2024
1 parent 79db31c commit 2e9a6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/backend/unit/model/threading/DiskManagerWorker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe('DiskMangerWorker', () => {
ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets');
const dir = await DiskManager.scanDirectory('/');
// should match the number of media (photo/video) files in the assets folder
expect(dir.media.length).to.be.equals(16);
// TODO: make this test less flaky. Every time a new image is added to the folder, it fails.
expect(dir.media.length).to.be.equals(17);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json'));
const i = dir.media.findIndex(m => m.name === 'test image öüóőúéáű-.,.jpg');
Expand Down

0 comments on commit 2e9a6b8

Please sign in to comment.