summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authordklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 21:00:36 +0100
committerdklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 21:00:36 +0100
commit7e5f40e7716813f0d32e2efcb32df3c263fbfc63 (patch)
treea6cd9ed910d3abf96d150ca25d1f9a47634474a2 /tests/handlers
parentlint (diff)
downloadsynapse-7e5f40e7716813f0d32e2efcb32df3c263fbfc63.tar.xz
fix tests
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_profile.py b/tests/handlers/test_profile.py
index 98b508c3d4..f8c0da5ced 100644
--- a/tests/handlers/test_profile.py
+++ b/tests/handlers/test_profile.py
@@ -96,7 +96,7 @@ class ProfileTestCase(unittest.TestCase):
         self.hs.config.disable_set_displayname = True
 
         # Set first displayname is allowed, if displayname is null
-        self.store.set_profile_displayname(self.frank.localpart, "Frank")
+        yield self.store.set_profile_displayname(self.frank.localpart, "Frank")
 
         d = self.handler.set_displayname(
             self.frank, synapse.types.create_requester(self.frank), "Frank Jr."
@@ -167,7 +167,7 @@ class ProfileTestCase(unittest.TestCase):
         self.hs.config.disable_set_avatar_url = True
 
         # Set first time avatar is allowed, if displayname is null
-        self.store.set_profile_avatar_url(
+        yield self.store.set_profile_avatar_url(
             self.frank.localpart, "http://my.server/me.png"
         )