Log MQTT disconnect reason. #13965

This commit is contained in:
Koen Kanters committed 2022-09-12 09:34:20 +02:00
1 parent d38b8ff5f1
commit 125ca61812
3 files changed
+7 -4

No files matched your search

+2 -1
View File
@@ -202,7 +202,8 @@ describe('Controller', () => {
});
await controller.start();
await flushPromises();
expect(logger.error).toHaveBeenCalledWith('MQTT failed to connect: addr not found');
expect(logger.error).toHaveBeenCalledWith('MQTT error: addr not found');
expect(logger.error).toHaveBeenCalledWith('MQTT failed to connect, exiting...');
expect(mockExit).toHaveBeenCalledTimes(1);
expect(mockExit).toHaveBeenCalledWith(1, false);
});