mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-21 01:44:35 -04:00
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.
This commit is contained in:
parent
3483b78d1a
commit
d8866d7277
3 changed files with 81 additions and 50 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue