diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-17 12:18:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 12:18:01 -0400 |
commit | 050e20e7ca56c3a5985fdcf64012800c153260f2 (patch) | |
tree | 514cb57562e94f61c70a25c205113b728f0d3178 /tests/storage/test_profile.py | |
parent | Use the default templates when a custom template file cannot be found (#8037) (diff) | |
download | synapse-050e20e7ca56c3a5985fdcf64012800c153260f2.tar.xz |
Convert some of the general database methods to async (#8100)
Diffstat (limited to '')
-rw-r--r-- | tests/storage/test_profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_profile.py b/tests/storage/test_profile.py index 9b6f7211ae..9d5b8aa47d 100644 --- a/tests/storage/test_profile.py +++ b/tests/storage/test_profile.py @@ -33,7 +33,7 @@ class ProfileStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def test_displayname(self): - yield self.store.create_profile(self.u_frank.localpart) + yield defer.ensureDeferred(self.store.create_profile(self.u_frank.localpart)) yield self.store.set_profile_displayname(self.u_frank.localpart, "Frank") @@ -43,7 +43,7 @@ class ProfileStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def test_avatar_url(self): - yield self.store.create_profile(self.u_frank.localpart) + yield defer.ensureDeferred(self.store.create_profile(self.u_frank.localpart)) yield self.store.set_profile_avatar_url( self.u_frank.localpart, "http://my.site/here" |