mjolnir icon indicating copy to clipboard operation
mjolnir copied to clipboard

The Logging in integration tests is problematic

Open Gnuxie opened this issue 4 years ago • 0 comments

  1. We have far too many irrelevant calls to LogService.error from the matrix-bot-sdk MatrixClient for things that are expected ie getting a 404 when checking for the existence of a room alias or querying state events. This is causing a sort of alarm fatigue and makes it harder to look for the causes of problems in a full run (yarn test:integration).

  2. Mocha writes to the output stream in a completely inconsistent order to LogService. it can make the logs from MatrixClient or other components appear as though they are a result of a calls from a different test than what Mocha says has failed or has started running. Not sure if this is something from Mocha not awaiting test callbacks or something else.

Gnuxie avatar Jan 21 '22 17:01 Gnuxie