summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-01-21 08:38:36 +0000
committerGitHub <noreply@github.com>2022-01-21 08:38:36 +0000
commit4c2096599c9780290703e14df63963e77d058dda (patch)
tree3dfd85174b46639a2dc7675c9ae53ce63096e2e2 /tests
parentMake `get_account_data_for_room_and_type` a tree cache (#11789) (diff)
downloadsynapse-4c2096599c9780290703e14df63963e77d058dda.tar.xz
Make the `get_global_account_data_by_type_for_user` cache be a tree-cache whose key is prefixed with the user ID (#11788)
Diffstat (limited to 'tests')
-rw-r--r--tests/replication/slave/storage/test_account_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/slave/storage/test_account_data.py b/tests/replication/slave/storage/test_account_data.py
index 43e3248703..1524087c43 100644
--- a/tests/replication/slave/storage/test_account_data.py
+++ b/tests/replication/slave/storage/test_account_data.py
@@ -30,7 +30,7 @@ class SlavedAccountDataStoreTestCase(BaseSlavedStoreTestCase):
         )
         self.replicate()
         self.check(
-            "get_global_account_data_by_type_for_user", [TYPE, USER_ID], {"a": 1}
+            "get_global_account_data_by_type_for_user", [USER_ID, TYPE], {"a": 1}
         )
 
         self.get_success(
@@ -38,5 +38,5 @@ class SlavedAccountDataStoreTestCase(BaseSlavedStoreTestCase):
         )
         self.replicate()
         self.check(
-            "get_global_account_data_by_type_for_user", [TYPE, USER_ID], {"a": 2}
+            "get_global_account_data_by_type_for_user", [USER_ID, TYPE], {"a": 2}
         )