summary refs log tree commit diff
path: root/tests/storage/test_registration.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 14:45:17 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 14:45:17 +0100
commitd8866d72771fa04bd58a77a03aded45bf3ff2293 (patch)
tree4225c55da7f1f5af6db4c8a31ba1ab1f40c8b0aa /tests/storage/test_registration.py
parentLog where a request came from in federation (diff)
downloadsynapse-d8866d72771fa04bd58a77a03aded45bf3ff2293.tar.xz
Caches should be bound to instances.
Before, caches were global and so different instances of the stores
would share caches. This caused problems in the unit tests.
Diffstat (limited to 'tests/storage/test_registration.py')
-rw-r--r--tests/storage/test_registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_registration.py b/tests/storage/test_registration.py
index 78f6004204..2702291178 100644
--- a/tests/storage/test_registration.py
+++ b/tests/storage/test_registration.py
@@ -46,7 +46,7 @@ class RegistrationStoreTestCase(unittest.TestCase):
             (yield self.store.get_user_by_id(self.user_id))
         )
 
-        result = yield self.store.get_user_by_token(self.tokens[1])
+        result = yield self.store.get_user_by_token(self.tokens[0])
 
         self.assertDictContainsSubset(
             {