refactor(core): Remove dead pubsub code (#11180)

This commit is contained in:
Iván Ovejero
2024-10-09 12:56:06 +02:00
committed by GitHub
parent d69842c87d
commit 518e320404
9 changed files with 13 additions and 92 deletions

View File

@@ -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',
});
});
});
});