refactor(core): Prevent reporting to Sentry IMAP server error (no-changelog) (#9515)

This commit is contained in:
Iván Ovejero
2024-05-27 16:52:17 +02:00
committed by GitHub
parent 1abb26e2da
commit 6ed9ef0b60
2 changed files with 10 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ describe('WorkflowActivationError', () => {
expect(secondError.level).toBe('error');
});
test.each(['ETIMEDOUT', 'ECONNREFUSED', 'EAUTH'])(
'should set `level` to `warning` for %s',
test.each(['ETIMEDOUT', 'ECONNREFUSED', 'EAUTH', 'Temporary authentication failure'])(
'should set `level` to `warning` for `%s`',
(code) => {
const error = new WorkflowActivationError(code, { cause });