feat(core): Implement inter-main communication for test webhooks in multi-main setup (#8267)

This commit is contained in:
Iván Ovejero
2024-01-12 11:48:58 +01:00
committed by GitHub
parent 135553bd6b
commit 1a0e285553
17 changed files with 231 additions and 96 deletions

View File

@@ -65,7 +65,7 @@ describe('WebSocketPush', () => {
},
};
webSocketPush.send('executionRecovered', data, sessionId1);
webSocketPush.sendToOneSession('executionRecovered', data, sessionId1);
expect(mockWebSocket1.send).toHaveBeenCalledWith(
JSON.stringify({
@@ -91,7 +91,7 @@ describe('WebSocketPush', () => {
},
};
webSocketPush.broadcast('executionRecovered', data);
webSocketPush.sendToAllSessions('executionRecovered', data);
const expectedMsg = JSON.stringify({
type: 'executionRecovered',