Skip to content

Flaky unit test #37

Description

@juliusknorr
FAIL ../tests/unit/mailService.tests.js (10.194 s)
  ● Mail service › SMTP › Transporters life cycle

    thrown: "Exceeded timeout of 10000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      20 |     const {host, port} = defaultTestSMTPServer;
      21 |
    > 22 |     test(
         |     ^
      23 |       'Transporters life cycle',
      24 |       async () => {
      25 |         // Accounts created at https://ethereal.email/, all messages in tests goes here: https://ethereal.email/messages

      at test (unit/mailService.tests.js:22:5)
      at describe (unit/mailService.tests.js:19:3)
      at Object.describe (unit/mailService.tests.js:18:1)

Technically this is not a unit test talking to a 3rdparty service, so either we should mock that or use a local service in the tests like https://github.com/mailhog/MailHog

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtests

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions