test: add new queue name

This commit is contained in:
izzy
2025-12-17 15:41:23 +00:00
parent b8feaecf86
commit 05acf74626
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,7 @@ describe(QueueService.name, () => {
it('should update concurrency', () => { it('should update concurrency', () => {
sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig }); sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig });
expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(17); expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(18);
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1);
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1);
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5);
@@ -77,6 +77,7 @@ describe(QueueService.name, () => {
[QueueName.BackupDatabase]: expected, [QueueName.BackupDatabase]: expected,
[QueueName.Ocr]: expected, [QueueName.Ocr]: expected,
[QueueName.Workflow]: expected, [QueueName.Workflow]: expected,
[QueueName.IntegrityCheck]: expected,
}); });
}); });
}); });
@@ -41,6 +41,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
[QueueName.Notification]: { concurrency: 5 }, [QueueName.Notification]: { concurrency: 5 },
[QueueName.Ocr]: { concurrency: 1 }, [QueueName.Ocr]: { concurrency: 1 },
[QueueName.Workflow]: { concurrency: 5 }, [QueueName.Workflow]: { concurrency: 5 },
[QueueName.IntegrityCheck]: { concurrency: 1 },
}, },
backup: { backup: {
database: { database: {