diff --git a/tests/rest/client/v1/test_rooms.py b/tests/rest/client/v1/test_rooms.py index c6c6edeac299..d3c73535d63e 100644 --- a/tests/rest/client/v1/test_rooms.py +++ b/tests/rest/client/v1/test_rooms.py @@ -715,7 +715,7 @@ def test_join_local_ratelimit_profile_change(self): # Create a profile for the user, since it hasn't been done on registration. store = self.hs.get_datastore() - store.create_profile(UserID.from_string(self.user_id).localpart) + self.get_success(store.create_profile(UserID.from_string(self.user_id).localpart)) # Update the display name for the user. path = "/_matrix/client/r0/profile/%s/displayname" % self.user_id