Skip to content

Make sure we only connect to SMTP on-demand

When running the tests, we expect the local MTA to be working. That's not something that we can assume.

The notification tests all mock the SMTP object to check whether it's called properly, so we don't really need to connect on backend initialization.

Test Plan

Run tests with local MTA disabled, make sure they still pass.

Group Reviewers: Reviewers


Migrated from D309 (view on Phabricator)

Merge request reports