mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: ignore external libraries for integrity report checksum check (#29248)
This commit is contained in:
parent
c0bf5a4c56
commit
c484bd99b6
3 changed files with 18 additions and 0 deletions
|
|
@ -686,6 +686,22 @@ describe(IntegrityService.name, () => {
|
|||
nextCursor: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
it('should skip external library files', async () => {
|
||||
const { sut, ctx } = setup();
|
||||
const job = ctx.getMock(JobRepository);
|
||||
job.queue.mockResolvedValue(void 0);
|
||||
|
||||
const { user } = await ctx.newUser();
|
||||
|
||||
await ctx.newAsset({ ownerId: user.id, isExternal: true });
|
||||
|
||||
await sut.handleChecksumFiles({ refreshOnly: false });
|
||||
|
||||
await expect(
|
||||
ctx.get(IntegrityRepository).getIntegrityReport({ limit: 100 }, IntegrityReport.ChecksumFail),
|
||||
).resolves.toEqual({ items: [], nextCursor: undefined });
|
||||
});
|
||||
});
|
||||
|
||||
describe('handleChecksumRefresh', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue