diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-22 13:41:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 13:41:11 +0100 |
commit | 06a02bc1ce9ef23a6dff28dbfd30f910ae330b1d (patch) | |
tree | f814615713b930736b936395a1ad391ff6efb82b /tests | |
parent | Use a non-empty RelayState for user interactive auth with SAML. (#7552) (diff) | |
download | synapse-06a02bc1ce9ef23a6dff28dbfd30f910ae330b1d.tar.xz |
Convert sending mail to async/await. (#7557)
Mainly because sometimes the email push code raises exceptions where the stack traces have gotten lost, which is hopefully fixed by this.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rest/client/v2_alpha/test_account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/client/v2_alpha/test_account.py b/tests/rest/client/v2_alpha/test_account.py index 0d6936fd36..3ab611f618 100644 --- a/tests/rest/client/v2_alpha/test_account.py +++ b/tests/rest/client/v2_alpha/test_account.py @@ -46,7 +46,7 @@ class PasswordResetTestCase(unittest.HomeserverTestCase): # Email config. self.email_attempts = [] - def sendmail(smtphost, from_addr, to_addrs, msg, **kwargs): + async def sendmail(smtphost, from_addr, to_addrs, msg, **kwargs): self.email_attempts.append(msg) return @@ -358,7 +358,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase): # Email config. self.email_attempts = [] - def sendmail(smtphost, from_addr, to_addrs, msg, **kwargs): + async def sendmail(smtphost, from_addr, to_addrs, msg, **kwargs): self.email_attempts.append(msg) config["email"] = { |