summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-02-02 09:59:55 +0000
committerGitHub <noreply@github.com>2022-02-02 09:59:55 +0000
commit513913cc6ba77833082178b7d2b2f0565daf3c99 (patch)
tree91793eeab833e6ebb96bd55fba9e271db24a4266 /tests/storage
parentConvert `ApplicationServiceTestCase` to use `simple_async_mock` (#11880) (diff)
downloadsynapse-513913cc6ba77833082178b7d2b2f0565daf3c99.tar.xz
Expose the registered device ID from the `register_appservice_user` test helper. (#11615)
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_user_directory.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storage/test_user_directory.py b/tests/storage/test_user_directory.py
index 7f5b28aed8..48f1e9d841 100644
--- a/tests/storage/test_user_directory.py
+++ b/tests/storage/test_user_directory.py
@@ -341,7 +341,9 @@ class UserDirectoryInitialPopulationTestcase(HomeserverTestCase):
         # Register an AS user.
         user = self.register_user("user", "pass")
         token = self.login(user, "pass")
-        as_user = self.register_appservice_user("as_user_potato", self.appservice.token)
+        as_user, _ = self.register_appservice_user(
+            "as_user_potato", self.appservice.token
+        )
 
         # Join the AS user to rooms owned by the normal user.
         public, private = self._create_rooms_and_inject_memberships(