This commit is contained in:
Meghdad committed 2026-07-14 12:51:36 +03:30
commit f035fcef4f
134 files changed
+18678

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from 'vitest';
import { MEDIA_QUEUE_NAME, startMediaQueueWorker } from '../src/work.js';
describe('BullMQ media worker', () => {
it('uses the API queue name and rejects unsafe concurrency before connecting', () => {
expect(MEDIA_QUEUE_NAME).toBe('easy-stream-media');
expect(() => startMediaQueueWorker({
redisUrl: 'redis://127.0.0.1:1',
concurrency: 0,
async dispatch() {},
})).toThrow('concurrency');
});
});