mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Remove dead pubsub code (#11180)
This commit is contained in:
@@ -195,7 +195,6 @@ describe('PubSubHandler', () => {
|
||||
'community-package-update': expect.any(Function),
|
||||
'community-package-uninstall': expect.any(Function),
|
||||
'get-worker-status': expect.any(Function),
|
||||
'get-worker-id': expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -266,25 +265,5 @@ describe('PubSubHandler', () => {
|
||||
|
||||
expect(workerStatus.generateStatus).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should get worker ID on `get-worker-id` event', () => {
|
||||
new PubSubHandler(
|
||||
eventService,
|
||||
instanceSettings,
|
||||
license,
|
||||
eventbus,
|
||||
externalSecretsManager,
|
||||
communityPackagesService,
|
||||
publisher,
|
||||
workerStatus,
|
||||
).init();
|
||||
|
||||
eventService.emit('get-worker-id');
|
||||
|
||||
expect(publisher.publishWorkerResponse).toHaveBeenCalledWith({
|
||||
workerId: expect.any(String),
|
||||
command: 'get-worker-id',
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user