mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Override executions mode if regular during worker startup (#11250)
This commit is contained in:
@@ -39,6 +39,8 @@ mockInstance(Push);
|
||||
const command = setupTestCommand(Worker);
|
||||
|
||||
test('worker initializes all its components', async () => {
|
||||
config.set('executions.mode', 'regular'); // should be overridden
|
||||
|
||||
const worker = await command.run();
|
||||
expect(worker.queueModeId).toBeDefined();
|
||||
expect(worker.queueModeId).toContain('worker');
|
||||
@@ -53,4 +55,6 @@ test('worker initializes all its components', async () => {
|
||||
expect(logStreamingEventRelay.init).toHaveBeenCalledTimes(1);
|
||||
expect(orchestrationWorkerService.init).toHaveBeenCalledTimes(1);
|
||||
expect(messageEventBus.send).toHaveBeenCalledTimes(1);
|
||||
|
||||
expect(config.getEnv('executions.mode')).toBe('queue');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user